Problem trivialexam
User cobnet
Submission Time 2024-02-14 17:12:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialexam.cpp: In function ‘int main()’:
trivialexam.cpp:5:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
5 | if(n == "1"){cout<<"14332";}
| ^~~
trivialexam.cpp:6:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | else if(n == "2"){cout<<"23143";}
| ^~~
trivialexam.cpp:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | else if(n == "3"){cout<<"21324";}
| ^~~
trivialexam.cpp:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | else if(n == "4"){cout<<"34412";}
| ^~~
trivialexam.cpp:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | else if(n == "5"){cout<<"42131";}
| ^~~
trivialexam.cpp:10:15: error: ISO C++ forbids com