Problem 3nplus1
User Um
Submission Time 2023-04-28 18:59:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:4:5: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | if (n==int){
| ^
| yn
3nplus1.cpp:4:8: error: expected primary-expression before ‘int’
4 | if (n==int){
| ^~~
3nplus1.cpp:4:8: error: expected ‘)’ before ‘int’
4 | if (n==int){
| ~ ^~~
| )
3nplus1.cpp:5:7: error: redeclaration of ‘long int n’
5 | long n;
| ^
3nplus1.cpp:4:5: note: ‘<typeprefixerror>n’ previously declared here
4 | if (n==int){
| ^
3nplus1.cpp:8:1: error: expected ‘}’ before ‘else’
8 | else{
| ^~~~
3nplus1.cpp:4:12: note: to match this ‘{’
4 | if (n==int){
| ^
3nplus1.cpp:9:8: error: redeclaration of ‘long int n’
9 | long n;
| ^
3nplus1.cpp:4:5: note: ‘<typeprefixerror>n’ previously declared here
4 | if (n