Submission #3287

# Submission time Handle Problem Language Result Execution time Memory
3287 2013-08-30T10:23:56 Z ascamper 0 = not cute / 1 = cute (kriii1_0) C++
Compilation error
0 ms 0 KB
#include <iostream>
using namespace std;

int bit[101];
int isCute = 0;;

int main(){
	int pNum;
	cin >> pNum;
	
	for(int i = 0 ; i < pNum ; i++){
		cin>>bit[i];
		if(bit[i] == 1)
			isCute++;
	}
	
	if(isCute > pNum/2)
		cout<<"Junhee is cute!"<<endl;
	else
		cout<<"Junhee is not cute!"<<endl;
	
	return 0;

Compilation message

0.cpp: In function 'int main()':
0.cpp:22:10: error: expected '}' at end of input