Problem | democracy |
---|---|
User | ATHY |
Submission Time | 2024-06-22 07:28:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
democracy.cpp: In function ‘int main()’:
democracy.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
democracy.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> votes(n);
| ^~~~~~
democracy.cpp:5:12: error: expected primary-expression before ‘int’
5 | vector<int> votes(n);
| ^~~
democracy.cpp:7:16: error: ‘votes’ was not declared in this scope
7 | cin >> votes[i];
| ^~~~~
democracy.cpp:12:13: error: ‘votes’ was not declared in this scope
12 | if (votes[i] == 5) {
| ^~~~~
democracy.cpp:21:20: error: ‘max’ was not declared in this scope
21 | int maxVotes = max({counter5, counter6, counter7});
| ^~~
democracy.cpp:32:5: error: ‘cout’ was not declared in this scope
32 | cout << x << endl;