Submission #7827

# Submission time Handle Problem Language Result Execution time Memory
7827 2014-08-19T10:48:11 Z gs13068 0 = not cute / 1 = cute (kriii1_0) C++
Compilation error
0 ms 0 KB
#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

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]