Problem 3nplus1
User Um
Submission Time 2023-04-28 19:00:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:8: error: expected primary-expression before ‘int’
5 | if (n==int){
| ^~~
3nplus1.cpp:5:8: error: expected ‘)’ before ‘int’
5 | if (n==int){
| ~ ^~~
| )
3nplus1.cpp:10:8: error: expected ‘;’ before ‘cout’
10 | cin>>n
| ^
| ;
11 | cout<<n+n+n+1;
| ~~~~
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:3:12: note: to match this ‘{’
3 | int main(){
| ^