Submission #8425

# Submission time Handle Problem Language Result Execution time Memory
8425 2014-09-13T18:17:47 Z tncks0121 Wiring (kriii2_W) C
Compilation error
0 ms 0 KB
ll n;main(){scanf("%lld",&n);printf("%lld",n%2?n/2:n-1);}

Compilation message

P.c:1:1: error: unknown type name 'll'
P.c:1:6: warning: return type defaults to 'int' [-Wreturn-type]
P.c: In function 'main':
P.c:1:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
P.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
P.c:1:1: warning: format '%lld' expects argument of type 'long long int *', but argument 2 has type 'int *' [-Wformat]
P.c:1:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
P.c:1:30: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
P.c:1:1: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat]
P.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]