Problem 3nplus1
User AineshB
Submission Time 2024-11-07 10:49:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
3nplus1.cpp:5:1: note: in expansion of macro ‘int’
5 | int main() {
| ^~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
3nplus1.cpp:6:2: note: in expansion of macro ‘int’
6 | int n;
| ^~~
3nplus1.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n;
| ^
| yn
3nplus1.cpp:12:3: error: expected ‘}’ before ‘else’
12 | else {
| ^~~~
3nplus1.cpp:10:15: note: to match this ‘{’
10 | if (n%2 = 0){
| ^