Submission #15012

# Submission time Handle Problem Language Result Execution time Memory
15012 2015-07-09T21:49:14 Z yourID 꼬마 정민 (kriii3_RR) C
Compilation error
0 ms 0 KB
long long a,s;
main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)

Compilation message

rr.c:2:1: warning: return type defaults to ‘int’ [-Wreturn-type]
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
 ^
rr.c: In function ‘main’:
rr.c:2:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
rr.c:2:9: warning: incompatible implicit declaration of built-in function ‘scanf’
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
         ^
rr.c:2:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
 ^
rr.c:2:37: warning: incompatible implicit declaration of built-in function ‘printf’
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
                                     ^
rr.c:2:1: error: expected ‘;’ at end of input
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
 ^
rr.c:2:1: error: expected declaration or statement at end of input
rr.c:2:1: warning: control reaches end of non-void function [-Wreturn-type]
 main(t){scanf("%lld",&a)?main(s+=a):printf("%lld\n",s)
 ^