Problem | 3nplus1 |
---|---|
User | pointlessapeirogon |
Submission Time | 2024-01-28 18:47:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘void generateSequence(int)’:
3nplus1.cpp:5:23: error: expected ‘;’ before ‘if’
5 | std::cout << n
| ^
| ;
6 | if (n % 2 == 0) {
| ~~
3nplus1.cpp:8:11: error: ‘else’ without a previous ‘if’
8 | } else {
| ^~~~
3nplus1.cpp:13:9: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
13 | return 0;
| ^