Submission #1339345


Source Code Expand

a;main(b){for(;~scanf("%d",&b);)a=a*10+b;puts(a%4?"NO":"YES");}

Submission Info

Submission Time
Task A - RGB Cards
User kotatsugame
Language C (GCC 5.4.1)
Score 100
Code Size 63 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c:1:1: warning: data definition has no type or storage class
 a;main(b){for(;~scanf("%d",&b);)a=a*10+b;puts(a%4?"NO":"YES");}
 ^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
./Main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a;main(b){for(;~scanf("%d",&b);)a=a*10+b;puts(a%4?"NO":"YES");}
   ^
./Main.c: In function ‘main’:
./Main.c:1:3: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 a;main(b){for(;~scanf("%d",&b);)a=a*10+b;puts(a%4?"NO":"YES");}
                 ^
./Main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:1:42: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 a;main(b){for(;~scanf("%d",&b);)a=a*10+b;puts(a%4?"NO":"YES");}
                                          ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample s1.txt, s2.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
in1.txt AC 1 ms 128 KB
in2.txt AC 1 ms 128 KB
in3.txt AC 1 ms 128 KB
in4.txt AC 1 ms 128 KB
in5.txt AC 1 ms 128 KB
s1.txt AC 1 ms 128 KB
s2.txt AC 1 ms 128 KB