Submission #3287

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

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