Submission #4445

# Submission time Handle Problem Language Result Execution time Memory
4445 2013-10-06T18:37:39 Z yourID 0 = not cute / 1 = cute (kriii1_0) C++
Compilation error
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]