Submission #912541
Source Code Expand
r;main(c){for(;~(c=getchar());)r+=c>83?!!r:-1;printf("%d",~r*2);
Submission Info
Submission Time | |
---|---|
Task | A - STring |
User | hogeover30 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 64 Byte |
Status | CE |
Compile Error
./Main.c:1:1: warning: data definition has no type or storage class r;main(c){for(;~(c=getchar());)r+=c>83?!!r:-1;printf("%d",~r*2); ^ ./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] ./Main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] r;main(c){for(;~(c=getchar());)r+=c>83?!!r:-1;printf("%d",~r*2); ^ ./Main.c: In function ‘main’: ./Main.c:1:3: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int] ./Main.c:1:20: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration] r;main(c){for(;~(c=getchar());)r+=c>83?!!r:-1;printf("%d",~r*2); ^ ./Main.c:1:47: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] r;main(c){for(;~(c=getchar());)r+=c>83?!!r:-1;printf("%d",~r*2); ^ ./Main.c:1:47: warning: incompatible implicit declaration of built-in function ‘printf’ ./Main.c:1:47: note: include ‘<stdio.h>’ or provide a declaration of ...