Submission #10119

# Submission time Handle Problem Language Result Execution time Memory
10119 2014-10-15T11:04:25 Z lavataste 0 = not cute / 1 = cute (kriii1_0) C
Compilation error
0 ms 0 KB
#include<stdio.h>
int main()
{
  int N, a, i, sum;
  sum=0;
  scanf("%d", &N);
  for(i=1; i==N, i++)
  {
    scanf("%d", &a);
    sum+=a;
    a=0;
  }
  if(sum>N/2) printf("Junhee is cute!");
  else printf("Junhee is not cute!");
  return 0;
}

Compilation message

0.c: In function 'main':
0.c:7:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
0.c:7:21: error: expected ';' before ')' token
0.c:6:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
0.c:9:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]