Problem | democracy |
---|---|
User | Rafael |
Submission Time | 2024-06-21 14:47:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
democracy.cpp: In function ‘int main()’:
democracy.cpp:16:9: error: expected ‘}’ before ‘else’
16 | else if (votes[i] == 6) {
| ^~~~
democracy.cpp:14:28: note: to match this ‘{’
14 | if (votes[i] == 5) {
| ^
democracy.cpp:31:13: error: expected ‘}’ at end of input
31 | return 0;
| ^
democracy.cpp:27:12: note: to match this ‘{’
27 | } else {
| ^
democracy.cpp:31:13: error: expected ‘}’ at end of input
31 | return 0;
| ^
democracy.cpp:18:35: note: to match this ‘{’
18 | } else if (votes[i] == 7) {
| ^
democracy.cpp:31:13: error: expected ‘}’ at end of input
31 | return 0;
| ^
democracy.cpp:12:33: note: to match this ‘{’
12 | for (int i = 0; i < N; ++i) {
|