Submission #7827

#TimeUsernameProblemLanguageResultExecution timeMemory
7827gs130680 = not cute / 1 = cute (kriii1_0)C++98
Compilation error
0 ms0 KiB
#include<cstdio> int main() { int i,n,a,s=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a); s+=a; } puts("Junhee is%scute!",s>a/2?" ":" not "); }

Compilation message (stderr)

0.cpp: In function 'int main()':
0.cpp:12:44: error: too many arguments to function 'int puts(const char*)'
/usr/include/stdio.h:692:12: note: declared here
0.cpp:6:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
0.cpp:9:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]