Problem 3nplus1
User whvun
Submission Time 2023-02-16 17:13:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:9: error: ‘a’ was not declared in this scope
5 | cin >> a;
| ^
3nplus1.cpp:6:15: error: expected initializer before ‘>’ token
6 | while (int i > 1;) {
| ^
3nplus1.cpp:6:14: error: expected ‘)’ before ‘>’ token
6 | while (int i > 1;) {
| ~ ^~
| )
3nplus1.cpp:6:15: error: expected primary-expression before ‘>’ token
6 | while (int i > 1;) {
| ^
3nplus1.cpp:6:19: error: expected primary-expression before ‘)’ token
6 | while (int i > 1;) {
| ^
3nplus1.cpp: At global scope:
3nplus1.cpp:15:2: error: expected unqualified-id before ‘return’
15 | return cout << a;
| ^~~~~~