Problem exam
User Devthethala
Submission Time 2026-06-22 16:14:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:11: error: expected initializer before numeric constant
6 | int x 1;
| ^
exam.cpp:7:9: error: ‘x’ was not declared in this scope
7 | if (x = 1){
| ^
exam.cpp:8:18: error: expected initializer before string constant
8 | string Greeting "Hello World"
| ^~~~~~~~~~~~~
exam.cpp:12:8: error: expected ‘;’ before ‘a’
12 | cin a >> b
| ^~
| ;