Submission #1781487


Source Code Expand

main(n){scanf("%d",&n);printf("%ld",1L<<n-1);}

Submission Info

Submission Time
Task A - Biscuits
User riantkb
Language C (GCC 5.4.1)
Score 0
Code Size 46 Byte
Status WA
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(n){scanf("%d",&n);printf("%ld",1L<<n-1);}
 ^
./Main.c: In function ‘main’:
./Main.c:1:1: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:9: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 main(n){scanf("%d",&n);printf("%ld",1L<<n-1);}
         ^
./Main.c:1:9: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:1:24: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 main(n){scanf("%d",&n);printf("%ld",1L<<n-1);}
                        ^
./Main.c:1:24: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:1:24: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
WA × 1
AC × 10
WA × 6
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt, sample4.txt
All sample1.txt, sample2.txt, sample3.txt, sample4.txt, in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
Case Name Status Exec Time Memory
in1.txt AC 1 ms 128 KB
in2.txt AC 1 ms 128 KB
in3.txt WA 1 ms 128 KB
in4.txt WA 1 ms 128 KB
in5.txt AC 1 ms 128 KB
in6.txt AC 1 ms 128 KB
in7.txt WA 1 ms 128 KB
in8.txt WA 1 ms 128 KB
sample1.txt AC 1 ms 128 KB
sample2.txt WA 1 ms 128 KB
sample3.txt AC 1 ms 128 KB
sample4.txt AC 1 ms 128 KB