Problem ballot
User blob
Submission Time 2023-11-14 12:53:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballot.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
ballot.cpp: In function ‘int main()’:
ballot.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> N >> C;
| ^~~
ballot.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> ballotNumbers(N);
| ^~~~~~
ballot.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> ballotNumbers(N);
| ^~~
ballot.cpp:9:16: error: ‘ballotNumbers’ was not declared in this scope
9 | cin >> ballotNumbers[i];
| ^~~~~~~~~~~~~
ballot.cpp:12:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
12 | sort ballotNumbers.begin(), ballotNumbers.end());
| ^~~~
| short
ballot.cpp:18:31: error: ‘ballotNumbers’ was not declared in this scope