Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
f(char*a){
^
prog.c: In function 'f':
prog.c:2:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(long d=1,j;j=d+=*++a>90?92-*a:0;)
^
prog.c:4:30: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
for(;j||*++a^34;)putchar(j?--j?45:62:*a);
^~~~~~~
prog.c:5:13: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
puts("");
^~~~
prog.c: In function 'main':
prog.c:13:7: warning: passing argument 1 of 'f' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
f(str);
^~~
prog.c:1:1: note: expected 'char *' but argument is of type 'const char *'
f(char*a){
^
prog.c: In function 'f':
prog.c:7:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
>Atom
->Proton
-->Up Quark
-->Up Quark
-->Down Quark
->Neutron
-->Up Quark
-->Down Quark
-->Down Quark
->Electron
Exit Code:
0