Problem ballot
User blob
Submission Time 2023-11-14 09:51:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballot.cpp: In function ‘int main()’:
ballot.cpp:7:11: error: template argument 1 is invalid
7 | set<int s>::iterator it;
| ^
ballot.cpp:7:11: error: template argument 2 is invalid
ballot.cpp:7:11: error: template argument 3 is invalid
ballot.cpp:7:23: error: qualified-id in declaration before ‘it’
7 | set<int s>::iterator it;
| ^~
ballot.cpp:10:2: error: ‘s’ was not declared in this scope
10 | s.insert(arr1[n]);
| ^
ballot.cpp:12:7: error: ‘it’ was not declared in this scope; did you mean ‘int’?
12 | for (it = s.begin(); it != s.end(); it++){
| ^~
| int