submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s712606418
p00006
C
#include <stdio.h> #include <string.h> int main() { char arr[100]; printf("Enter a string to reverse\n"); gets(arr); strrev(arr); printf("Reverse of entered string is \n%s\n",arr); return 0; }
main.c: In function 'main': main.c:9:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | gets(arr); | ^~~~ | fgets main.c:11:4: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 11 | strrev(arr); | ^~~~~~ | strsep
s549847312
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[50]; char *rev; printf("Enter any string : "); scanf("%s",str); rev = strrev(str); printf("%s",rev); return 0; }
main.c: In function 'main': main.c:9:11: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 9 | rev = strrev(str); | ^~~~~~ | strsep main.c:9:9: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 9 | rev = strrev(str); | ^
s127669086
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[20]; char *rev; printf("Enter any string : "); scanf("%s",str); rev = strrev(str); printf("%s",rev); return 0; }
main.c: In function 'main': main.c:9:11: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 9 | rev = strrev(str); | ^~~~~~ | strsep main.c:9:9: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 9 | rev = strrev(str); | ^
s784342445
p00006
C
#include<stdio.h> #include<string.h> int main(void){ char *s; int i; scanf("%s", s); int len = strlen(s); for(i = len - 1; i >= 0; i--) putchar(s[i]); putchar('\n') return 0; }
main.c: In function 'main': main.c:10:18: error: expected ';' before 'return' 10 | putchar('\n') | ^ | ; 11 | 12 | return 0; | ~~~~~~
s377617358
p00006
C
#include<stdio.h> int main() { char str[20]; gets(str); strrev(str); puts(str); return 0; }
main.c: In function 'main': main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(str); | ^~~~ | fgets main.c:6:5: error: implicit declaration of function 'strrev' [-Wimplicit-function-declaration] 6 | strrev(str); | ^~~~~~
s463208574
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[20]; char *rev; printf("Enter any string :\n"); scanf("%s",str); rev = strrev(str); printf("Reverse string is : %s\n",rev); return 0; }
main.c: In function 'main': main.c:9:11: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 9 | rev = strrev(str); | ^~~~~~ | strsep main.c:9:9: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 9 | rev = strrev(str); | ^
s974848281
p00006
C
#include<stdio.h> #include<string.h> main() { char str[50],revstr[50]; int i=0,j=0; printf("Enter the string to be reversed : "); scanf("%s",str); for(i=strlen(str)-1;i>=0;i--) { revstr[j]=str[i]; j++; } revstr[j]='\0'; printf("Input String : %s",str); printf("\nOutput String : %s",revstr); getch(); }
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main() | ^~~~ main.c: In function 'main': main.c:17:2: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration] 17 | getch(); | ^~~~~ | getc
s076611531
p00006
C
int main() { char inputString[20], temp; int length, leftIndex, rightIndex; printf("Enter a string to reverse\n"); gets(inputString); /* Find length of string */ length = strlen(inputString); /* * Initialize leftIndex and rightDex to position * of first and last character of String */ leftIndex = 0; rightIndex = length -1; while(leftIndex < rightIndex){ temp = inputString[leftIndex]; inputString[leftIndex] = inputString[rightIndex]; inputString[rightIndex] = temp; leftIndex++; rightIndex--; } printf("Reversed string is: %s\n", inputString); getch(); return 0; }
main.c: In function 'main': main.c:5:4: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 5 | printf("Enter a string to reverse\n"); | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | int main() main.c:5:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 5 | printf("Enter a string to reverse\n"); | ^~~~~~ main.c:5:4: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:6:4: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 6 | gets(inputString); | ^~~~ main.c:8:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 8 | length = strlen(inputString); | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | int main() main.c:8:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 8 | length = strlen(inputString); | ^~~~~~ main.c:8:13: note: include '<string.h>' or provide a declaration of 'strlen' main.c:26:4: error: implicit declaration of function 'getch' [-Wimplicit-function-declaration] 26 | getch(); | ^~~~~
s625170194
p00006
C
#include<stdio.h> #include<conio.h> void main() { int i,count=0; char ch[20]; clrscr(); printf("Enter the string\n"); gets(ch); for(i=0;ch[i]!='\0';i++) { count++; } printf("Reverse is:"); for(i=count-1;i>=0;i--) { printf("%c",ch[i]); } getch(); }
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s809103007
p00006
C
#include <stdio.h> int main(){ int i,count=1; char str[21]; for (i=0; i<20; i++) { scanf("%s",str[i]); count++ } for (i=count; i>0; i--) { printf("%s",str[i]); } return(0); }
main.c: In function 'main': main.c:9:16: error: expected ';' before '}' token 9 | count++ | ^ | ; 10 | } | ~
s390851963
p00006
C
#include <stdio.h> int main(){ int i,count=1; char str[21]; for (i=0; i<20; i++) { scanf("%c",str[i]); count++ } for (i=count; i>0; i--) { printf("%c",str[i]); } return(0); }
main.c: In function 'main': main.c:9:16: error: expected ';' before '}' token 9 | count++ | ^ | ; 10 | } | ~
s774759553
p00006
C
#include <stdio.h> int main(void) { char str[32]; int i; scanf("%s", str); for(i = 20; i <= 0; i--) printf("%c", str[i]); return0; }
main.c: In function 'main': main.c:12:9: error: 'return0' undeclared (first use in this function) 12 | return0; | ^~~~~~~ main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
s706079904
p00006
C
#include <stdio.h> int main(void) { char str[32]; int i = 0; do{ scanf("%c", &str[i]); i++; }while(str[i] != NULL); while(i >= 0){ printf("%c", str[i]); i--; } return0; }
main.c: In function 'main': main.c:9:23: warning: comparison between pointer and integer 9 | }while(str[i] != NULL); | ^~ main.c:16:9: error: 'return0' undeclared (first use in this function) 16 | return0; | ^~~~~~~ main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
s614827061
p00006
C
#include <stdio.h> #include <string.h> int main() { char d[]; scanf("%s",&d); int len=strlen(d); int i; for(i=0;i<len/2;i++) { d[i]^=d[len-i-1]; d[len-i-1]^=d[i]; d[i]^=d[len-i-1]; } printf("%s\n",d); }
main.c: In function 'main': main.c:6:7: error: array size missing in 'd' 6 | char d[]; | ^
s602326814
p00006
C
#include<stdio.h> int main(){ char buf[20]; int i; scanf("%s",&buf); for(i=20;i>0i--){ if(buf[i]==\0){ break; } } for(i=i;i>0i--){ printf("%c",buf[i]); } printf("%n"); return 0; }
main.c: In function 'main': main.c:9:14: error: lvalue required as decrement operand 9 | for(i=20;i>0i--){ | ^~ main.c:9:16: error: expected ';' before ')' token 9 | for(i=20;i>0i--){ | ^ | ; main.c:11:12: error: stray '\' in program 11 | if(buf[i]==\0){ | ^ main.c:17:13: error: lvalue required as decrement operand 17 | for(i=i;i>0i--){ | ^~ main.c:17:15: error: expected ';' before ')' token 17 | for(i=i;i>0i--){ | ^ | ;
s492720579
p00006
C
#include<stdio.h> int main(){ char buf[20]; int i; scanf("%s",&buf); for(i=20;i>0i--){ if(buf[i]=='\0'){ break; } } for(i=i;i>0i--){ printf("%c",buf[i]); } printf("%n"); return 0; }
main.c: In function 'main': main.c:9:14: error: lvalue required as decrement operand 9 | for(i=20;i>0i--){ | ^~ main.c:9:16: error: expected ';' before ')' token 9 | for(i=20;i>0i--){ | ^ | ; main.c:17:13: error: lvalue required as decrement operand 17 | for(i=i;i>0i--){ | ^~ main.c:17:15: error: expected ';' before ')' token 17 | for(i=i;i>0i--){ | ^ | ;
s372774431
p00006
C
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include<stdio.h> int main(){ char buf[20]; int i; scanf("%s",&buf); for(i=20;i>0;i--){ if(buf[i]=='\0'){ break; } } for(i=i;i>0;i--){ printf("%c",buf[i]); } printf("%n"); return 0; }
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 4 | ^ In file included from /usr/include/stdio.h:47, from main.c:22: /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t' 28 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' +++ |+#include <stddef.h> 1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc. /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t' 37 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'? 57 | cookie_read_function_t *read; /* Read bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~ | cookie_seek_function_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'? 58 | cookie_write_function_t *write; /* Write bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~~ | cookie_close_function_t /usr/include/stdio.h:314:35: error: unknown type name 'size_t' 314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | ^~~~~~ /usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' 129 | #include <bits/stdio_lim.h> +++ |+#include <stddef.h> 130 | /usr/include/stdio.h:320:47: error: unknown type name 'size_t' 320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW | ^~~~~~ /usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:340:34: error: unknown type name 'size_t' 340 | int __modes, size_t __n) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:346:24: error: unknown type name 'size_t' 346 | size_t __size) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:385:44: error: unknown type name 'size_t' 385 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:389:45: error: unknown type name 'size_t' 389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:690:30: error: unknown type name 'size_t' 690 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:693:28: error: unknown type name 'size_t' 693 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:698:27: error: unknown type name 'size_t' 698 | size_t *__restrict __n, | ^~~~~~ /usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:8: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:46: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:729:22: error: unknown type name 'size_t' 729 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:8: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:53: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:736:23: error: unknown type name 'size_t' 736 | size_t __n, FILE *__restrict __s) __nonnull((4)); | ^~~~~~ /usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:8: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:55: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:757:31: error: unknown type name 'size_t' 757 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:8: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:62: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:760:32: error: unknown type name 'size_t' 760 | size_t __n, FILE *__restrict __stream) | ^~~~~~ /usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
s779454100
p00006
C
#include <bits/stdc++.h> int main(void){ char str[21]; int i; gets(str); for (i=strlen(str);i>=0;--i){ printf("%c",str[i]); } printf("\n"); }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s911407410
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[20 + 1]; gets(str); strrev(str); puts(str); return 0; }
main.c: In function 'main': main.c:8:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(str); | ^~~~ | fgets main.c:10:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 10 | strrev(str); | ^~~~~~ | strsep
s046290654
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[21]; gets(str); strrev(str); puts(str); return 0; }
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets main.c:7:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 7 | strrev(str); | ^~~~~~ | strsep
s653952885
p00006
C
#include<bits/stdc++.h> using namespace std; string s, a; int main(){ cin>>s; for(int i=s.length()-1;i>=0;i--){ a=a+s[i]; } cout<<a<<endl; }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s854422507
p00006
C
#include<stdio.h> #include<string.h> int main(void){ int rev; char str[20]; scanf("%s",str); for(rev=strlen(str)-1;rev>=0;rev--) printf("%c",str[rev]); printf("\n") return 0; }
main.c: In function 'main': main.c:9:17: error: expected ';' before 'return' 9 | printf("\n") | ^ | ; 10 | return 0; | ~~~~~~
s150339112
p00006
C
#include<stdio.h> #include<string.h> #define MAX 1000 int main() { int i,len,count=0; char str[MAX]; while (1) { scanf("%s", &str); len = strlen(str); if (0 <= len && len <= 20){ break; } } for (i = 0; str[i] != '\0';i++){ count++; } for (i=count-1; i >= 0; i--){ printf("%c", str[i]); } printf("\n"); return 0;
main.c: In function 'main': main.c:24:9: error: expected declaration or statement at end of input 24 | return 0; | ^~~~~~
s872411107
p00006
C
#include<stdio.h> int main(void){ char stro[],strr[]; int i=0; scanf("%s",stro) while(i<strlen(stro)){ strr[i]=stro[strlen(stro)-i] } printf("%s\n",strr[]); return 0; }
main.c: In function 'main': main.c:4:6: error: array size missing in 'stro' 4 | char stro[],strr[]; | ^~~~ main.c:4:13: error: array size missing in 'strr' 4 | char stro[],strr[]; | ^~~~ main.c:6:17: error: expected ';' before 'while' 6 | scanf("%s",stro) | ^ | ; 7 | while(i<strlen(stro)){ | ~~~~~
s258244154
p00006
C
#include<stdio.h> int main(void){ char stro[20],strr[20]; int i=0; scanf("%s",stro) while(i<strlen(stro)){ strr[i]=stro[strlen(stro)-i] } printf("%s\n",strr[]); return 0; }
main.c: In function 'main': main.c:6:17: error: expected ';' before 'while' 6 | scanf("%s",stro) | ^ | ; 7 | while(i<strlen(stro)){ | ~~~~~
s125824691
p00006
C
#include<stdio.h> int main(void){ char stro[20],strr[20]; int i=0; scanf("%s",stro); while(i<strlen(stro)){ strr[i]=stro[strlen(stro)-i] } printf("%s\n",strr[]); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 7 | while(i<strlen(stro)){ | ^~~~~~ main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen' 1 | #include<stdio.h> +++ |+#include <string.h> 2 | main.c:7:9: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 7 | while(i<strlen(stro)){ | ^~~~~~ main.c:7:9: note: include '<string.h>' or provide a declaration of 'strlen' main.c:8:29: error: expected ';' before '}' token 8 | strr[i]=stro[strlen(stro)-i] | ^ | ; 9 | } | ~ main.c:10:20: error: expected expression before ']' token 10 | printf("%s\n",strr[]); | ^
s318661271
p00006
C
#include<stdio.h> int main(void){ char a[256]; scanf("%s", a) for(i = strlen(a) - 1; i >= 0; i--){ printf("%s",a[i]); } return 0; }
main.c: In function 'main': main.c:5:17: error: expected ';' before 'for' 5 | scanf("%s", a) | ^ | ; 6 | for(i = strlen(a) - 1; i >= 0; i--){ | ~~~
s817563768
p00006
C
File Edit Options Buffers Tools C Help #include<stdio.h> int main(){ char z[20]; int i,j; scanf("%s",&z); for(i=0; z[i]!='\0';i++); if(i<=20){ for(j=i;j>=0;j--){ printf("%c",z[j]); } printf("\n"); } return 0; }
main.c:1:1: error: unknown type name 'File' 1 | File Edit Options Buffers Tools C Help | ^~~~ main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Options' 1 | File Edit Options Buffers Tools C Help | ^~~~~~~ main.c:1:11: error: unknown type name 'Options' In file included from /usr/include/stdio.h:47, from main.c:2: /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t' 28 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' +++ |+#include <stddef.h> 1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc. /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t' 37 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'? 57 | cookie_read_function_t *read; /* Read bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~ | cookie_seek_function_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'? 58 | cookie_write_function_t *write; /* Write bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~~ | cookie_close_function_t /usr/include/stdio.h:314:35: error: unknown type name 'size_t' 314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | ^~~~~~ /usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' 129 | #include <bits/stdio_lim.h> +++ |+#include <stddef.h> 130 | /usr/include/stdio.h:320:47: error: unknown type name 'size_t' 320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW | ^~~~~~ /usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:340:34: error: unknown type name 'size_t' 340 | int __modes, size_t __n) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:346:24: error: unknown type name 'size_t' 346 | size_t __size) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:385:44: error: unknown type name 'size_t' 385 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:389:45: error: unknown type name 'size_t' 389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:690:30: error: unknown type name 'size_t' 690 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:693:28: error: unknown type name 'size_t' 693 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:698:27: error: unknown type name 'size_t' 698 | size_t *__restrict __n, | ^~~~~~ /usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:8: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:46: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:729:22: error: unknown type name 'size_t' 729 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:8: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:53: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:736:23: error: unknown type name 'size_t' 736 | size_t __n, FILE *__restrict __s) __nonnull((4)); | ^~~~~~ /usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:8: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:55: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:757:31: error: unknown type name 'size_t' 757 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:8: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:62: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:760:32: error: unknown type name 'size_t' 760 | size_t __n, FILE *__restrict __stream) | ^~~~~~ /usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
s864603536
p00006
C
#include<stdio.h> int main(){ char z[20]; int i,j; scanf("%s",&z); for(i=0; z[i]!=\0;i++); if(i<=20){ for(j=i;j>=0;j--){ printf("%c",z[j]); } printf("\n"); } return 0; }
main.c: In function 'main': main.c:6:20: error: stray '\' in program 6 | for(i=0; z[i]!=\0;i++); | ^
s060843828
p00006
C
#include<stdlib.h> #include<stdio.h> int main(char[] str){ int i = 0; for(i = strlen(str) - 1; i >= 0; i--) printf("%c", str[i]); return 0; } // end main
main.c:4:17: error: expected ';', ',' or ')' before 'str' 4 | int main(char[] str){ | ^~~
s368006706
p00006
C
#include<stdlib.h> #include<stdio.h> int main(){ char[] str; scanf("%s", str); int i = 0; for(i = strlen(str) - 1; i >= 0; i--) printf("%c", str[i]); return 0; } // end main
main.c: In function 'main': main.c:5:7: error: expected identifier or '(' before '[' token 5 | char[] str; | ^ main.c:6:15: error: 'str' undeclared (first use in this function) 6 | scanf("%s", str); | ^~~ main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in main.c:8:11: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 8 | for(i = strlen(str) - 1; i >= 0; i--) | ^~~~~~ main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen' 2 | #include<stdio.h> +++ |+#include <string.h> 3 | main.c:8:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 8 | for(i = strlen(str) - 1; i >= 0; i--) | ^~~~~~ main.c:8:11: note: include '<string.h>' or provide a declaration of 'strlen'
s622761270
p00006
C
#include<stdlib.h> #include<stdio.h> int main(){ char[] str = ""; scanf("%s", str); int i = 0; for(i = strlen(str) - 1; i >= 0; i--) printf("%c", str[i]); return 0; } // end main
main.c: In function 'main': main.c:5:7: error: expected identifier or '(' before '[' token 5 | char[] str = ""; | ^ main.c:6:15: error: 'str' undeclared (first use in this function) 6 | scanf("%s", str); | ^~~ main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in main.c:8:11: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 8 | for(i = strlen(str) - 1; i >= 0; i--) | ^~~~~~ main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen' 2 | #include<stdio.h> +++ |+#include <string.h> 3 | main.c:8:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 8 | for(i = strlen(str) - 1; i >= 0; i--) | ^~~~~~ main.c:8:11: note: include '<string.h>' or provide a declaration of 'strlen'
s459769226
p00006
C
#include <stdio.h> #include <string.h> int main(void){ char a[30]; int n,i; gets(a); n=strlen(a); for(i=n-1;i>=0;i--){ printf("%c",a[i]); } }
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(a); | ^~~~ | fgets
s974134744
p00006
C
#include<stdio.h> #define N 20 int main() { char a[N]; gets(a); int i = 0; while (a[i++] != '\0') { continue; } for (i = i - 2; i >= 0; i--) { printf("%c", a[i]); } printf("\n"); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(a); | ^~~~ | fgets
s330350359
p00006
C
#include <stdio.h> int main(void) { char str[20]; int qty; gets(str); int i; for(i=0;i<20;i++) { if(str[i] == '\0') { qty = i; goto next; } } next: for(i=(qty-1);i>=0;i--) { printf("%c",str[i]); } printf("\n"); return 0; }
main.c: In function 'main': main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(str); | ^~~~ | fgets
s562460213
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[30]; gets(str); for(int i=strlen(str)-1;i>=0;i--) printf("%c",str[i]); printf("\n"); }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets
s570359735
p00006
C
#include <stdio.h> #include <string.h> int main() { int i,len; char str[21]; gets(str); len=strlen(str); for(i=len-1;i>=0;i--) printf("%c",str[i]); return 0; }
main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | gets(str); | ^~~~ | fgets
s309611203
p00006
C
#include<stdio.h> #include<string.h> int main() { int i, n; char a[1000]; gets(a); n = strlen(a); for (i = n-1 ; i>=0; i--) printf("%c\n", a[i]); getchar(); getchar(); }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(a); | ^~~~ | fgets
s791110661
p00006
C
#include<stdio.h> #include<string.h> int main() { int i, n; char a[1000]; gets(a); n = strlen(a); for (i = n-1 ; i>=0; i--) printf("%c", a[i]); printf("\n"); getchar(); getchar(); }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(a); | ^~~~ | fgets
s209226539
p00006
C
#include<stdio.h> #include<string.h> int main() { char str[20]; gets(str); strrev(str); printf("%s\n",str); return 0; }
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets main.c:7:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 7 | strrev(str); | ^~~~~~ | strsep
s962228268
p00006
C
#include<stdio.h> int main() { char s[1000], r[1000]; int begin, end, count = 0; gets(s); // Calculating string length while (s[count] != '\0') count++; end = count - 1; for (begin = 0; begin < count; begin++) { r[begin] = s[end]; end--; } r[begin] = '\0'; printf("%s\n", r); return 0; }
main.c: In function 'main': main.c:6:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(s); | ^~~~ | fgets
s177695747
p00006
C
#include <stdio.h> #include <string.h> int main(void) { int t; char x[20 + 1]; gets(x); t = strlen(x); while (t--) { printf("%c", x[t]); } printf("\n"); return 0; }
main.c: In function 'main': main.c:7:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | gets(x); | ^~~~ | fgets
s728059540
p00006
C
#include <stdio.h> int main(void) { int i; int qty; char str[21]; for(i=0;i<21;i++) { str[i] = '\0'; } gets(str); //fgets(str,21,stdin); for(i=0;i<21;i++) { if(str[i] == '\0') { qty = i; } } for(i=(qty-1);i>=0;i--) { printf("%c",str[i]); } printf("\n"); return 0; }
main.c: In function 'main': main.c:14:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 14 | gets(str); | ^~~~ | fgets
s698412087
p00006
C
#include<stdio.h> #include<string.h> int main () { char str[20]; /*scanf("%s",str[i]); l=strlen(str); for(i=l-1;i>=0;i--) printf("%c",str[i]); getch();*/ gets(str); strrev(str); puts(str); getch(); }
main.c: In function 'main': main.c:17:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 17 | gets(str); | ^~~~ | fgets main.c:18:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 18 | strrev(str); | ^~~~~~ | strsep main.c:20:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration] 20 | getch(); | ^~~~~ | getc
s088353421
p00006
C
#include <stdio.h> #include <string.h> int main () { char str1[200]; gets(str1); strrev(str1); printf("%s",str1); }
main.c: In function 'main': main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | gets(str1); | ^~~~ | fgets main.c:8:5: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 8 | strrev(str1); | ^~~~~~ | strsep
s467504112
p00006
C
#include <stdio.h> #include <string.h> int main() { char a[20]; gets(a); strrev(a); printf("%s\n", a); return 0; }
main.c: In function 'main': main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | gets(a); | ^~~~ | fgets main.c:8:4: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 8 | strrev(a); | ^~~~~~ | strsep
s495994362
p00006
C
#include<stdio.h> #include<string.h> int main(){ char i,b,a[25]; gets(a); b=strlen(a); for(i=b-1;i>=0;i--) printf("%c",a[i]); printf("\n"); }
main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(a); | ^~~~ | fgets
s400699206
p00006
C
#include <stdio.h> int main(void){ // Your code here! int main(void){ char str[100]; int i; int count=0; scanf("%s",str); for(i=0;str[i]!='\0';i++){ count++; } for(i=count-1;i>=0;i--){ printf("%c",str[i]); } printf("\n"); return 0; }
main.c: In function 'main': main.c:20:1: error: expected declaration or statement at end of input 20 | } | ^
s355630258
p00006
C
#include <algorithm> using namespace std; int main(){ string s; cin>>s; reverse(s.begin(),s.end()); cout<<s<<endl; }
main.c:1:10: fatal error: algorithm: No such file or directory 1 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s269660869
p00006
C
#include <stdio.h> #include <string.h> int main(){ char a[20]; char t; size_t len,i; scanf("%s",a); len = strlen(a); for(i = 0;i < len / 2 ,i++){ t = a[i];a[i] = a[len - i-1];a[len - i-1] = t; } printf("%s",a); return 0; }
main.c: In function 'main': main.c:12:29: error: expected ';' before ')' token 12 | for(i = 0;i < len / 2 ,i++){ | ^ | ;
s062963011
p00006
C
#include <stdio.h> #include <string.h> int main(){ char a[20]; char t; int len,i; scanf("%s",a); len = strlen(a); for(i = 0;i < len / 2 ,i++){ t = a[i];a[i] = a[len - i-1];a[len - i-1] = t; } printf("%s",a); return 0; }
main.c: In function 'main': main.c:12:29: error: expected ';' before ')' token 12 | for(i = 0;i < len / 2 ,i++){ | ^ | ;
s164733964
p00006
C
#include <stdio.h> #include <string.h> int main(){ char a[20]; int len,i; scanf("%s",a); len = strlen(a); for (i = len - 1; i >= 0; --i) putchar(a[i]); puts("") return 0; }
main.c: In function 'main': main.c:10:11: error: expected ';' before 'return' 10 | puts("") | ^ | ; 11 | return 0; | ~~~~~~
s783639668
p00006
C
#include <stdio.h> #include <string.h> int main(){ char a[20]; char t; int len,i; scanf("%s",a); len = strlen(a); for (i = len - 1; i >= 0; --i) putchar(a[i]); puts(""); return 0;
main.c: In function 'main': main.c:17:2: error: expected declaration or statement at end of input 17 | return 0; | ^~~~~~
s123716674
p00006
C
char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););}
main.c:1:19: error: return type defaults to 'int' [-Wimplicit-int] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~ main.c: In function 'main': main.c:1:19: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} main.c:1:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~~~ main.c:1:34: note: include '<string.h>' or provide a declaration of 'strlen' main.c:1:41: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~ main.c:1:41: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~~~~~~ | | | int main.c:1:41: note: expected 'const char *' but argument is of type 'int' main.c:1:52: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | char s[22]="\0\n";main(i){for(i+=strlen(gets(s+2));putchar(s[i--]););}
s709164883
p00006
C
main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:24: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ main.c:1:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} main.c:1:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~ main.c:1:34: note: include '<string.h>' or provide a declaration of 'strlen' main.c:1:50: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}
s037187205
p00006
C
main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:24: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ main.c:1:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} main.c:1:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~ main.c:1:34: note: include '<string.h>' or provide a declaration of 'strlen' main.c:1:50: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}
s579393857
p00006
C
#include<string.h> #include<stdio.h> main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ main.c: In function 'main': main.c:3:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:3:24: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 3 | main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);} | ^~~~ | fgets
s719958224
p00006
C
main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:24: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} | ^~~~ main.c:1:34: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} main.c:1:34: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} | ^~~~~~ main.c:1:34: note: include '<string.h>' or provide a declaration of 'strlen' main.c:1:52: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | main(i){char a[20];for(gets(a),i=strlen(a)+1;i;i--)putchar(a[i-1]);}
s061250225
p00006
C
include <stdio.h> main(){ int i; char str[21],a[21]; scanf("%c",str); for(i=0;i<21;i++){ if(str[i]=='\0') { a[21-i]='%0'; break; } a[21-i]=str[i]; } printf("%c",a); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^ main.c:8:15: warning: multi-character character constant [-Wmultichar] 8 | a[21-i]='%0'; | ^~~~
s123120343
p00006
C
include <stdio.h> main(){ int i; char str[21],a[21]; scanf("%c",str); for(i=0;i<21;i++){ if(str[i]=='\0') { a[21-i]='\0'; break; } a[21-i]=str[i]; } printf("%c",a); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s937349135
p00006
C
#include <stdio.h> #include <string.h> main(){ int i,j=0; char b[21],a[21]; scanf("%s",b); j=strlen(b); for(i=0;i<j;i++){ a[i]=b[j-i-1]; } a[j]='\0'; printf("%s\n",a); return 0; } #include <stdio.h> #include <string.h> main(){ int i,j=0; char b[21],a[21]; scanf("%s",b); j=strlen(b); for(i=0;i<j;i++){ a[i]=b[j-i-1]; } a[j]='\0'; printf("%s\n",a); return 0; }
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int] 4 | main(){ | ^~~~ main.c:19:1: error: return type defaults to 'int' [-Wimplicit-int] 19 | main(){ | ^~~~ main.c:19:1: error: redefinition of 'main' main.c:4:1: note: previous definition of 'main' with type 'int()' 4 | main(){ | ^~~~
s864177054
p00006
C
#include <stdio.h> main(){ int i,j=0; char b[21],a[21]; scanf("%s",b); j=strlen(b); for(i=0;i<j;i++){ a[i]=b[j-i-1]; } a[j]='\0'; printf("%s\n",a); return 0; } #include <stdio.h> #include <string.h> main(){ int i,j=0; char b[21],a[21]; scanf("%s",b); j=strlen(b); for(i=0;i<j;i++){ a[i]=b[j-i-1]; } a[j]='\0'; printf("%s\n",a); return 0; }
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function 'main': main.c:7:5: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 7 | j=strlen(b); | ^~~~~~ main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen' 1 | #include <stdio.h> +++ |+#include <string.h> 2 | main.c:7:5: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 7 | j=strlen(b); | ^~~~~~ main.c:7:5: note: include '<string.h>' or provide a declaration of 'strlen' main.c: At top level: main.c:18:1: error: return type defaults to 'int' [-Wimplicit-int] 18 | main(){ | ^~~~ main.c:18:1: error: redefinition of 'main' main.c:3:1: note: previous definition of 'main' with type 'int()' 3 | main(){ | ^~~~
s169240473
p00006
C
#include <stdio.h> int main(){ char str[21]; int i,k; for(i=0;i<=20;i++){ str[i]='\0'; } gets(str); for(i=20;i>=0;i--){ if(str[i]!='\0'){ for(k=i;k>=0;k--){ printf("%c",str[k]); } printf("\n"); break; } } return 0; }
main.c: In function 'main': main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(str); | ^~~~ | fgets
s183427583
p00006
C
#include <stdio.h> #include <string.h> int main(void) { char buf[256], len[5]; fgets(buf, 256, stdin); strtok(buf, "\n"); printf("%d ", strlen(buf)); strrev(buf); printf("%s ", buf); sprintf(len, "%d", strlen(buf)); strrev(len); printf("%s ", len); return 0; }
main.c: In function 'main': main.c:8:1: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration] 8 | strrev(buf); | ^~~~~~ | strsep
s156685076
p00006
C
#include<stdio.h> #include<string.h> int main(){ char a[20],b[20],i,l; gets(a); l=strlen(a); for(i=l;i>=0;i--) b[l-i-1]=a[i]; printf("%s",b); return 0; }
main.c: In function 'main': main.c:5:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(a); | ^~~~ | fgets
s001029845
p00006
C
#include<stdio,h> #include<string.h> int main(){ char a[20]; int l,i; scanf("%s",a); l=strlen(a); for(i=l-1;i>=0;i--) printf("%c",a[i]); return 0; }
main.c:1:9: fatal error: stdio,h: No such file or directory 1 | #include<stdio,h> | ^~~~~~~~~ compilation terminated.
s899505395
p00006
C
#include <stdio.h> int main (void) { char str[21], new_str[21]; gets(str); int i; for(i=0; i<21; i++){ new_str[i]='\0'; } for(i=0; i<20; i++){ if(str[i]=='\0' || str[i]=='\n'){break;} new_str[20-i]=str[i]; } for(i=0; i<21; i++){ if(new_str[i]!='\0'){printf("%c", new_str[i]);} } printf("\n"); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets
s050320891
p00006
C
#include<stdio.h> int main() { char s[99], *p; gets(s); for (p = s; *p; p ++); for (p--; p >= s; p --) putchar(*p); putchar('\n'); return 0; }
main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(s); | ^~~~ | fgets
s941895024
p00006
C
#include<stdin> char b[99];main(n){n=read(stdin,b,80);}
main.c:1:9: fatal error: stdin: No such file or directory 1 | #include<stdin> | ^~~~~~~ compilation terminated.
s684678038
p00006
C
#ifdef _0006_ n;main(i){n=i^10?main(getchar())&putchar(i-1?i:10):0;} #endif main(){ char s[21]; int i; gets(s); i = strlen(s); while (i--) { putchar(s[i]); } puts(""); return 0; }
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int] 4 | main(){ | ^~~~ main.c: In function 'main': main.c:7:3: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 7 | gets(s); | ^~~~ main.c:8:7: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 8 | i = strlen(s); | ^~~~~~ main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen' +++ |+#include <string.h> 1 | #ifdef _0006_ main.c:8:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 8 | i = strlen(s); | ^~~~~~ main.c:8:7: note: include '<string.h>' or provide a declaration of 'strlen' main.c:10:5: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 10 | putchar(s[i]); | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | #ifdef _0006_ main.c:12:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 12 | puts(""); | ^~~~ main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'puts'
s807898852
p00006
C
main(i){i-10&&main(getchar())&putchar(i?>10);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar(i?>10);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i?>10);} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar(i?>10);} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i?>10);} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:41: error: expected expression before '>' token 1 | main(i){i-10&&main(getchar())&putchar(i?>10);} | ^
s776217191
p00006
C
a[21];main(){scanf("%s",a);puts(strrev(a));}
main.c:1:1: warning: data definition has no type or storage class 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~ main.c: In function 'main': main.c:1:14: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} main.c:1:14: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~~ main.c:1:14: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:28: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~ main.c:1:28: note: include '<stdio.h>' or provide a declaration of 'puts' main.c:1:33: error: implicit declaration of function 'strrev' [-Wimplicit-function-declaration] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~~~ main.c:1:33: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion] 1 | a[21];main(){scanf("%s",a);puts(strrev(a));} | ^~~~~~~~~ | | | int main.c:1:33: note: expected 'const char *' but argument is of type 'int'
s487598844
p00006
C
main(i){char s[200];gets(s);puts(s);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){char s[200];gets(s);puts(s);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:21: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(i){char s[200];gets(s);puts(s);} | ^~~~ main.c:1:29: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | main(i){char s[200];gets(s);puts(s);} | ^~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts' +++ |+#include <stdio.h> 1 | main(i){char s[200];gets(s);puts(s);}
s830151401
p00006
C
main(){char*s;scanf("%as",&s);puts(strrev(s));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~ main.c: In function 'main': main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~~ main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:31: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'puts' main.c:1:36: error: implicit declaration of function 'strrev' [-Wimplicit-function-declaration] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~~~ main.c:1:36: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion] 1 | main(){char*s;scanf("%as",&s);puts(strrev(s));} | ^~~~~~~~~ | | | int main.c:1:36: note: expected 'const char *' but argument is of type 'int'
s630506630
p00006
C
#include<string.h> main(){ printf("%p\n", strrev); }
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:3:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 3 | printf("%p\n", strrev); | ^~~~~~ main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf' 1 | #include<string.h> +++ |+#include <stdio.h> 2 | main(){ main.c:3:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 3 | printf("%p\n", strrev); | ^~~~~~ main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:3:18: error: 'strrev' undeclared (first use in this function); did you mean 'strsep'? 3 | printf("%p\n", strrev); | ^~~~~~ | strsep main.c:3:18: note: each undeclared identifier is reported only once for each function it appears in
s293528018
p00006
C
#include <stdio.h> char s[100];main(){puts((*gets)(s));}
main.c:2:13: error: return type defaults to 'int' [-Wimplicit-int] 2 | char s[100];main(){puts((*gets)(s));} | ^~~~ main.c: In function 'main': main.c:2:27: error: 'gets' undeclared (first use in this function); did you mean 'fgets'? 2 | char s[100];main(){puts((*gets)(s));} | ^~~~ | fgets main.c:2:27: note: each undeclared identifier is reported only once for each function it appears in
s151286310
p00006
C
i=20;main(){char s[];scanf("%s",s); for(i=20;i;)putchar(s[--i]); puts("");}
main.c:1:1: warning: data definition has no type or storage class 1 | i=20;main(){char s[];scanf("%s",s); | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:6: error: return type defaults to 'int' [-Wimplicit-int] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~ main.c: In function 'main': main.c:1:18: error: array size missing in 's' 1 | i=20;main(){char s[];scanf("%s",s); | ^ main.c:1:22: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | i=20;main(){char s[];scanf("%s",s); main.c:1:22: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~~ main.c:1:22: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:13: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 2 | for(i=20;i;)putchar(s[--i]); | ^~~~~~~ main.c:2:13: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:3:1: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 3 | puts("");} | ^~~~ main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'puts'
s993899617
p00006
C
i=20;main(){char s[];scanf("%s",s); for(;i;)putchar(s[--i]); puts("");}
main.c:1:1: warning: data definition has no type or storage class 1 | i=20;main(){char s[];scanf("%s",s); | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:6: error: return type defaults to 'int' [-Wimplicit-int] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~ main.c: In function 'main': main.c:1:18: error: array size missing in 's' 1 | i=20;main(){char s[];scanf("%s",s); | ^ main.c:1:22: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | i=20;main(){char s[];scanf("%s",s); main.c:1:22: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | i=20;main(){char s[];scanf("%s",s); | ^~~~~ main.c:1:22: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:9: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 2 | for(;i;)putchar(s[--i]); | ^~~~~~~ main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:3:1: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 3 | puts("");} | ^~~~ main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'puts'
s106482391
p00006
C
i=20;char s[20];main(){scanf("%s",s); for(;i;)putchar(s[--i]); i=!putschar(10);}
main.c:1:1: warning: data definition has no type or storage class 1 | i=20;char s[20];main(){scanf("%s",s); | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:17: error: return type defaults to 'int' [-Wimplicit-int] 1 | i=20;char s[20];main(){scanf("%s",s); | ^~~~ main.c: In function 'main': main.c:1:24: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | i=20;char s[20];main(){scanf("%s",s); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | i=20;char s[20];main(){scanf("%s",s); main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | i=20;char s[20];main(){scanf("%s",s); | ^~~~~ main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:2:9: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 2 | for(;i;)putchar(s[--i]); | ^~~~~~~ main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:3:4: error: implicit declaration of function 'putschar' [-Wimplicit-function-declaration] 3 | i=!putschar(10);} | ^~~~~~~~
s891150385
p00006
C
char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));}
main.c:1:15: error: return type defaults to 'int' [-Wimplicit-int] 1 | char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~ main.c: In function 'main': main.c:1:22: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~ main.c:1:36: error: implicit declaration of function 'index' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~ main.c:1:36: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] main.c:1:51: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));}
s400547031
p00006
C
char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));}
main.c:1:15: error: return type defaults to 'int' [-Wimplicit-int] 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~ main.c: In function 'main': main.c:1:22: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~ main.c:1:33: error: 'stdin' undeclared (first use in this function) 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~ main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} main.c:1:33: note: each undeclared identifier is reported only once for each function it appears in 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~ main.c:1:46: error: implicit declaration of function 'index' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~ main.c:1:46: warning: incompatible implicit declaration of built-in function 'index' [-Wbuiltin-declaration-mismatch] main.c:1:61: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | char b[99],*p;main(){fgets(b,99,stdin);for(p=index(b,0);p-b;putchar(*--p));} | ^~~~~~~ main.c:1:61: note: include '<stdio.h>' or provide a declaration of 'putchar'
s104719778
p00006
C
main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);} main.c:1:39: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);} | ^~~~~~~ main.c:1:39: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:38: error: lvalue required as left operand of assignment 1 | main(i){i-10&&main(getchar());i-10&&i=putchar(i>1?i:10);} | ^
s907601176
p00006
C
main(i){return i-10&&!putchar(i>1?i:10,main(getch()));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){return i-10&&!putchar(i>1?i:10,main(getch()));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:23: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){return i-10&&!putchar(i>1?i:10,main(getch()));} | ^~~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar' +++ |+#include <stdio.h> 1 | main(i){return i-10&&!putchar(i>1?i:10,main(getch()));} main.c:1:45: error: implicit declaration of function 'getch' [-Wimplicit-function-declaration] 1 | main(i){return i-10&&!putchar(i>1?i:10,main(getch()));} | ^~~~~ main.c:1:23: warning: too many arguments to built-in function 'putchar' expecting 1 [-Wbuiltin-declaration-mismatch] 1 | main(i){return i-10&&!putchar(i>1?i:10,main(getch()));} | ^~~~~~~
s011987733
p00006
C
main(i,*k){i-10&&main(getchar())&putchar(i-1?i:10);*k=0;}
main.c:1:8: error: expected ')' before '*' token 1 | main(i,*k){i-10&&main(getchar())&putchar(i-1?i:10);*k=0;} | ^ | )
s939936266
p00006
C
k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;}
main.c:1:1: warning: data definition has no type or storage class 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:21: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} main.c:1:32: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:51: error: lvalue required as left operand of assignment 1 | k;main(i){i-10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~
s850114634
p00006
C
int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;}
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int] 1 | int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;} | ^~~~ main.c: In function 'main': main.c:1:7: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:25: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;} main.c:1:36: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:36: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:55: error: lvalue required as left operand of assignment 1 | int k;main(i){i-10?main(getchar())&putchar(i-1?i:10):k/=i;} | ^~
s065020626
p00006
C
k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;}
main.c:1:1: warning: data definition has no type or storage class 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~ main.c: In function 'main': main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:21: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} main.c:1:32: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~~~~~~ main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:51: error: lvalue required as left operand of assignment 1 | k;main(i){i^10?main(getchar()),putchar(i-1?i:10):k/=i;} | ^~
s879023539
p00006
C
main(i,*k){*k=i-10&&main(getchar())&putchar(i-1?i:10);}
main.c:1:8: error: expected ')' before '*' token 1 | main(i,*k){*k=i-10&&main(getchar())&putchar(i-1?i:10);} | ^ | )
s862428904
p00006
C
main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:39: error: 'k' undeclared (first use in this function) 1 | main(i){i-10&&main(getchar())&putchar(k=i-1?i:10);} | ^ main.c:1:39: note: each undeclared identifier is reported only once for each function it appears in
s391975261
p00006
C
main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:40: error: 'k' undeclared (first use in this function) 1 | main(i){i-10&&main(getchar())&putchar((k=i-1)?i:10);} | ^ main.c:1:40: note: each undeclared identifier is reported only once for each function it appears in
s318225000
p00006
C
main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:52: error: expected ';' before '}' token 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i--} | ^ | ;
s677777809
p00006
C
main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:49: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^~~~ main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit' +++ |+#include <stdlib.h> 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} main.c:1:49: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^~~~ main.c:1:49: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c:1:56: error: expected ';' before '}' token 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);exit(0)} | ^ | ;
s449647709
p00006
C
main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:20: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0} | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0} main.c:1:31: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0} | ^~~~~~~ main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'putchar' main.c:1:53: error: expected ';' before '}' token 1 | main(i){i-10&&main(getchar())&putchar(i-1?i:10);i*=0} | ^ | ;
s817432533
p00006
C
#include <stdio.h> #include<string.h> int main(void){ int i,j,n; i=0; j=0; char a[20],b[20]; gets(a); n = strlen(a); for(i=n-1;i>=0;i--) { b[n-i-1]=a[i]; } b[n]='\0'; printf("%s\n",b); return 0; }
main.c: In function 'main': main.c:10:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(a); | ^~~~ | fgets
s102509709
p00006
C
#include <stdio.h> #include<string.h> int main(void){ int i,j,n; i=0; j=0; char a[20],b[20]; gets(a); n = strlen(a); for(i=n-1;i>=0;i--) { b[n-i-1]=a[i]; } b[n]='\0'; printf("%s\n",b); return 0; }
main.c: In function 'main': main.c:10:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(a); | ^~~~ | fgets
s633826299
p00006
C
#include <stdio.h> #include<string.h> int main(void){ int i,j,n; i=0; j=0; char a[20],b[20]; gets(a); n = strlen(a); for(i=n-1;i>=0;i--) { b[n-1-i]=a[i]; } b[n]='\0'; printf("%s\n",b); return 0; }
main.c: In function 'main': main.c:10:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(a); | ^~~~ | fgets
s007620799
p00006
C
#include <stdio.h> #include<string.h> int main(void){ int i,j,n; i=0; j=0; char a[20],b[20]; gets(a); n = strlen(a); for(i=n-1;i>=0;i--) { b[n-1-i]=a[i]; } b[n]='\0'; printf("%s\n",b); return 0; }
main.c: In function 'main': main.c:10:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(a); | ^~~~ | fgets
s337504221
p00006
C
#include<stdio.h> int main() { char str[21]; int len=0; scanf("%s",str); while(*(str+len)) { len++; } while(len--) { putchar(*(instr+len)); } putchar('\n'); return 0; }
main.c: In function 'main': main.c:15:27: error: 'instr' undeclared (first use in this function); did you mean 'str'? 15 | putchar(*(instr+len)); | ^~~~~ | str main.c:15:27: note: each undeclared identifier is reported only once for each function it appears in
s723690942
p00006
C
#include <stdio.h> int main(){ int i; char in[20]; for(i = 0; i < 20; i++){ in[i] = '\0'; } scanf("%s",ツ in); for(i = 19; i > -1; i--){ if(in[i] != '\0'){ printf("%c", in[i]); } } printf("\n"); return 0; }
main.c: In function 'main': main.c:11:22: error: stray '\343' in program 11 | scanf("%s",<U+30C4><U+3000>in); | ^~~~~~~~ main.c:11:20: error: '\U000030c4' undeclared (first use in this function) 11 | scanf("%s",ツ in); | ^~ main.c:11:20: note: each undeclared identifier is reported only once for each function it appears in main.c:11:22: error: expected ')' before 'in' 11 | scanf("%s",ツ in); | ~ ^ ~~ | )
s050140217
p00006
C
#include <stdio.h> int main(){ char str[21],henkan[21]; /*20•¶ŽšˆÈ“à‚ŁAÅŒã‚É‚Í'\0'‚ªŠÜ‚Ü‚ê‚é‚Ì‚Å*/ int i=0,j=0; gets(str); while(str[i]){ /*•¶Žš—ñ‚Ì’·‚³‚Í‚¢‚­‚ç‚©‚ȁH*/ i++; } henkan[i]='\0'; /*•¶Žš—ñ‚Ì’·‚³‚ðŽw’è*/ i--; /*ÅŒã‚Ì•¶Žš‚Ɉړ®‚·‚é*/ while(henkan[j]){ henkan[j]=str[i]; /*•ÏŠ·*/ i--; j++; } puts(henkan); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets