| Problem | voting2 |
|---|---|
| User | estkn |
| Submission Time | 2026-11-11 11:42:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
voting2.cpp: In function ‘int32_t main()’:
voting2.cpp:35:13: error: ‘i’ was not declared in this scope
35 | ppl[i].first += x;
| ^
voting2.cpp:35:25: error: ‘x’ was not declared in this scope
35 | ppl[i].first += x;
| ^
voting2.cpp: At global scope:
voting2.cpp:39:9: error: expected constructor, destructor, or type conversion before ‘(’ token
39 | sort(ppl.rbegin(), ppl.rend());
| ^
voting2.cpp:41:5: error: expected unqualified-id before ‘for’
41 | for (int i = 0; i < d; i++) {
| ^~~
voting2.cpp:41:21: error: ‘i’ does not name a type
41 | for (int i = 0; i < d; i++) {
| ^
voting2.cpp:41:28: error: ‘i’ does not name a type
41 | for (int i = 0; i < d; i++) {
| ^
voting2.cpp:56:5: error: expected unqualified-id before ‘return’
56 |