Problem exam
User Ansel
Submission Time 2026-04-10 16:27:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:5: error: expected ‘(’ before ‘x’
6 | if x==1:cout<<"Hello World";
| ^
| (
exam.cpp:7:3: error: ‘else’ without a previous ‘if’
7 | else: long long a,b;cin >> a,b; cout<<a*b;
| ^~~~
exam.cpp:7:7: error: expected primary-expression before ‘:’ token
7 | else: long long a,b;cin >> a,b; cout<<a*b;
| ^
exam.cpp:7:30: error: ‘a’ was not declared in this scope
7 | else: long long a,b;cin >> a,b; cout<<a*b;
| ^
exam.cpp:7:32: error: ‘b’ was not declared in this scope
7 | else: long long a,b;cin >> a,b; cout<<a*b;
| ^