Problem 3nplus1
User whvun
Submission Time 2023-02-16 17:12:36
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:14:11: error: expected ‘}’ at end of input
14 | cout << a
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^