Submission #10123

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

Compilation message

0.c: In function 'main':
0.c:15:3: error: expected ';' before 'if'
0.c:16:3: error: 'else' without a previous 'if'
0.c:7:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
0.c:10:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]