Problem democracy
User skibidininja98
Submission Time 2024-06-21 13:02:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

democracy.cpp:26:35: error: missing terminating " character
26 | int stored_results[3]={"1",:2","3"};
| ^~~
democracy.cpp: In function ‘int main()’:
democracy.cpp:7:6: error: expected unqualified-id before string constant
7 | int "1" = 0, "2" = 0, "3" = 0;
| ^~~
democracy.cpp:9:6: error: expected unqualified-id before string constant
9 | int "1", "2", "3", "4";
| ^~~
democracy.cpp:17:6: error: lvalue required as increment operand
17 | ++1;
| ^
democracy.cpp:19:8: error: lvalue required as increment operand
19 | ;++2;
| ^
democracy.cpp:20:4: error: ‘else’ without a previous ‘if’
20 | else if ( vote == '3' )
| ^~~~
democracy.cpp:21:8: error: lvalue required as increment operand
21 | ;++3
| ^
democracy.cpp:26:29: error: expected primary-expression before ‘:’ token
26 | in