Submission #4446

#TimeUsernameProblemLanguageResultExecution timeMemory
4446yourID0 = not cute / 1 = cute (kriii1_0)C++98
Compilation error
0 ms0 KiB
#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 (stderr)

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]