Problem exam
User yikyewong
Submission Time 2026-02-14 09:45:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:77: error: expected ‘;’ before ‘if’
7 | cout<<"Pls input 1 for Hello world!, or 2 for multiplication calculator \n"
| ^
| ;
8 | if (x==1){
| ~~
exam.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if (x==2){
| ^~~~