Problem democracy
User skibidininja98
Submission Time 2024-06-21 13:10:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

democracy.cpp: In function ‘int main()’:
democracy.cpp:5:22: error: ‘a’ was not declared in this scope
5 | int max=0,mostvalue=a[0];
| ^
democracy.cpp:6:9: error: ‘i’ was not declared in this scope
6 | for(i=0;i<a.size();i++){
| ^
democracy.cpp:7:3: error: ‘co’ was not declared in this scope; did you mean ‘cos’?
7 | co = (int)count(a.begin(), a.end(), a[i]);
| ^~
| cos
democracy.cpp:12:5: error: expected ‘}’ at end of input
12 | }
| ^
democracy.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^