Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.c:2:1: warning: data definition has no type or storage class [enabled by default]
 s,t;c(char*x){for(;*x;s+=t<4?t?2-t:s:-s>>1)t=*x++%6;s=s;}
 ^
prog.c:2:1: warning: type defaults to 'int' in declaration of 's' [enabled by default]
prog.c:2:3: warning: type defaults to 'int' in declaration of 't' [enabled by default]
 s,t;c(char*x){for(;*x;s+=t<4?t?2-t:s:-s>>1)t=*x++%6;s=s;}
   ^
prog.c:2:5: warning: return type defaults to 'int' [enabled by default]
 s,t;c(char*x){for(;*x;s+=t<4?t?2-t:s:-s>>1)t=*x++%6;s=s;}
     ^
prog.c:4:1: warning: data definition has no type or storage class [enabled by default]
 v[256];
 ^
prog.c:4:1: warning: type defaults to 'int' in declaration of 'v' [enabled by default]
prog.c:5:1: warning: return type defaults to 'int' [enabled by default]
 main()
 ^
prog.c: In function 'main':
prog.c:7:5: warning: passing argument 1 of 'gets' from incompatible pointer type [enabled by default]
     gets(v);
     ^
In file included from prog.c:1:0:
/usr/include/stdio.h:636:14: note: expected 'char *' but argument is of type 'int *'
 extern char *gets (char *__s) __wur;
              ^
prog.c:8:5: warning: passing argument 1 of 'c' from incompatible pointer type [enabled by default]
     printf("%d",c(v));
     ^
prog.c:2:5: note: expected 'char *' but argument is of type 'int *'
 s,t;c(char*x){for(;*x;s+=t<4?t?2-t:s:-s>>1)t=*x++%6;s=s;}
     ^
prog.c: In function 'c':
prog.c:2:1: warning: control reaches end of non-void function [-Wreturn-type]
 s,t;c(char*x){for(;*x;s+=t<4?t?2-t:s:-s>>1)t=*x++%6;s=s;}
 ^
18773342
Exit Code:
0