Problem 3nplus1
User Aniedg
Submission Time 2024-02-03 21:27:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:9: error: expected ‘)’ before ‘mod’
8 | if ((a mod 2) == 0) {
| ~ ^~~~
| )
3nplus1.cpp:11:5: error: expected ‘)’ before ‘else’
11 | }
| ^
| )
12 | else {
| ~~~~
3nplus1.cpp:8:6: note: to match this ‘(’
8 | if ((a mod 2) == 0) {
| ^
3nplus1.cpp:16:1: error: expected primary-expression before ‘}’ token
16 | }
| ^