Problem | democracy |
---|---|
User | WHEE29alt |
Submission Time | 2024-06-21 12:44:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
democracy.cpp: In function ‘int main()’:
democracy.cpp:2:18: error: ‘cin’ was not declared in this scope
2 | int n,t,tc = 0; cin >> n; map<int,int> mp;
| ^~~
democracy.cpp:2:28: error: ‘map’ was not declared in this scope
2 | int n,t,tc = 0; cin >> n; map<int,int> mp;
| ^~~
democracy.cpp:2:32: error: expected primary-expression before ‘int’
2 | int n,t,tc = 0; cin >> n; map<int,int> mp;
| ^~~
democracy.cpp:5:3: error: ‘mp’ was not declared in this scope
5 | mp[a] += 1;
| ^~
democracy.cpp:8:7: error: ‘mp’ was not declared in this scope
8 | if (mp[j] >= tc){
| ^~
democracy.cpp:13:2: error: ‘cout’ was not declared in this scope
13 | cout << t;
| ^~~~