Submission #4068934


Source Code Expand

main(){char a[9];scanf("%c %c %c",&a[0],&a[1],&a[2]);if(atoi(a)%4)puts("NO");else puts("YES");}

Submission Info

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

Compile Error

./Main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(){char a[9];scanf("%c %c %c",&a[0],&a[1],&a[2]);if(atoi(a)%4)puts("NO");else puts("YES");}
 ^
./Main.c: In function ‘main’:
./Main.c:1:18: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 main(){char a[9];scanf("%c %c %c",&a[0],&a[1],&a[2]);if(atoi(a)%4)puts("NO");else puts("YES");}
                  ^
./Main.c:1:18: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:18: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:1:57: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
 main(){char a[9];scanf("%c %c %c",&a[0],&a[1],&a[2]);if(atoi(a)%4)puts("NO");else puts("YES");}
                                                         ^
./Main.c:1:67: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 main(){char a[9];scanf("%c %c %c",&a[0],&a[1],&a[2]);if(atoi(a)%4)puts("NO");else puts("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