Problem nicenumber
User YEethui
Submission Time 2023-11-30 14:08:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nicenumber.cpp: In function ‘int main()’:
nicenumber.cpp:9:32: error: expected ‘;’ before ‘cout’
9 | if(abs(n - 69) < abs(n - 420) cout << 69 << endl;
| ^~~~~
| ;
nicenumber.cpp:10:3: error: expected primary-expression before ‘else’
10 | else cout << 420 << endl;
| ^~~~
nicenumber.cpp:9:52: error: expected ‘)’ before ‘else’
9 | if(abs(n - 69) < abs(n - 420) cout << 69 << endl;
| ~ ^
| )
10 | else cout << 420 << endl;
| ~~~~