Problem democracy
User abigail
Submission Time 2024-06-21 15:52:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

democracy.cpp: In function ‘int main()’:
democracy.cpp:3:3: error: ‘cin’ was not declared in this scope
3 | cin >> N;
| ^~~
democracy.cpp:5:3: error: ‘pair’ was not declared in this scope
5 | pair<int, int> votes[3]; // 7,6,5
| ^~~~
democracy.cpp:5:8: error: expected primary-expression before ‘int’
5 | pair<int, int> votes[3]; // 7,6,5
| ^~~
democracy.cpp:6:3: error: ‘votes’ was not declared in this scope
6 | votes[0].first = 0;
| ^~~~~
democracy.cpp:23:26: error: ‘greater’ was not declared in this scope
23 | sort(votes, votes + N, greater<>());
| ^~~~~~~
democracy.cpp:23:34: error: expected primary-expression before ‘>’ token
23 | sort(votes, votes + N, greater<>());
| ^
democracy.cpp:23:36: error: expected primary-expression before ‘)’ token
23 | so