Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

NZEC error in c

$
0
0

I m actually new to codechef platform.i wrote a code on codeblocks in c language.it ran properly giving correct output.But when i ma submitting it on code chef it is telling me runtime error.Kindly help me anyone :) my code is :

//Codechef //elfedcc

include<stdio.h>

include<string.h>

include<stdlib.h>

include<stdlib.h>

//FUNCTION DELETED!!
//FUNCTION DELETED!!

void main() {

int i;
//scanf("%d\n",&i);
char *str="Codechef";
char *str1="elfedcc";
char *str2="abcd";
char *str3="xyz";
char *str4="cbda";
char *str5="abcd";
printf("%s\n",str);
printf("%s\n",str1);
printf("%s\n",str2);
printf("%s\n",str3);
printf("%s\n",str4);
printf("%s\n",str5);
int result;
result=com_alpha(str,str1);
printf("%d\n",result);
result=com_alpha(str2,str3);
printf("%d\n",result);
result=com_alpha(str4,str5);
printf("%d\n",result);
return 0;

}


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>