Problem | 3nplus1 |
---|---|
User | Alexis10 |
Submission Time | 2023-11-08 14:07:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:16:24: error: ‘a’ was not declared in this scope
16 | for (int i = 0; i<a; i++) {
| ^
3nplus1.cpp:19:9: error: unable to find numeric literal operator ‘operator""n’
19 | a=3n+1;
| ^~
3nplus1.cpp:21:12: error: ‘a’ was not declared in this scope
21 | cout << a;
| ^
3nplus1.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
3nplus1.cpp:8:13: note: to match this ‘{’
8 | if (n%2==0) {
| ^
3nplus1.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^