Problem 3nplus1
User fanqie
Submission Time 2023-11-22 22:23:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:7:18: error: invalid declarator before ‘v’
7 | int vector<int> v;
| ^
3nplus1.cpp:8:2: error: ‘v’ was not declared in this scope
8 | v.push_back(n);
| ^
3nplus1.cpp:13:16: error: unable to find numeric literal operator ‘operator""n’
13 | v.push_back(3n+1);
| ^~