답안 #4445

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
4445 2013-10-06T18:37:39 Z yourID 0 = not cute / 1 = cute (kriii1_0) C++
컴파일 오류
0 ms 0 KB
#include <stdio.h>

int main()
{
	int a=0,b=0,N,c;

	scanf ("%d",&N); while (N--){
		scanf ("%d",&c);
		if (c) b++;
		else a++;
	}

	puts (a>b?"Junhee is not cute!":"Junhee is cute!");

	return 0
}

Compilation message

0.cpp: In function 'int main()':
0.cpp:16:1: error: expected ';' before '}' token
0.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
0.cpp:8:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]