답안 #10120

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
10120 2014-10-15T11:05:04 Z lavataste 0 = not cute / 1 = cute (kriii1_0) C
컴파일 오류
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: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]