Submission #26055

#TimeUsernameProblemLanguageResultExecution timeMemory
26055TAMREF0 = not cute / 1 = cute (kriii1_0)C++11
1 / 1
0 ms1116 KiB
#include <cstdio> int main(){ int N,u,x=0; for(scanf("%d",&N);N--;){ scanf("%d",&u); x+=(u?1:-1); } puts(x>0?"Junhee is cute!":"Junhee is not cute!"); }

Compilation message (stderr)

0.cpp: In function 'int main()':
0.cpp:4:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   for(scanf("%d",&N);N--;){
                     ^
0.cpp:5:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&u);
                   ^
#Verdict Execution timeMemoryGrader output
Fetching results...