Problem exam
User Kishan
Submission Time 2023-06-05 17:22:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
exam.cpp: In function ‘int main()’:
exam.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> x;
| ^~~
exam.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout << "Hello World";
| ^~~~
exam.cpp:10:3: error: ‘string’ was not declared in this scope
10 | string y;
| ^~~~~~
exam.cpp:11:10: error: ‘y’ was not declared in this scope
11 | cin >> y;
| ^
exam.cpp:12:9: error: expected ‘;’ before ‘y1’
12 | string y1;
| ^~~
| ;
exam.cpp:13:9: error: expected ‘;’ before ‘y2’
13 | string y2;
| ^~~
| ;
exam.cpp:18:6: error: ‘y1’ was not declared in this scope
18 | y1 += r;
| ^~
exam.cpp:20:6: error: ‘y2’ was not declared in this scope<