Problem hello
User J0elKh00
Submission Time 2025-06-16 14:38:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hello.cpp: In function ‘int main()’:
hello.cpp:2:5: error: ‘string’ was not declared in this scope
2 | string a; cin >> a;
| ^~~~~~
hello.cpp:2:15: error: ‘cin’ was not declared in this scope
2 | string a; cin >> a;
| ^~~
hello.cpp:2:22: error: ‘a’ was not declared in this scope
2 | string a; cin >> a;
| ^
hello.cpp:3:5: error: ‘cout’ was not declared in this scope
3 | cout << "Hello " << a << "!"
| ^~~~
hello.cpp:3:30: error: expected ‘}’ at end of input
3 | cout << "Hello " << a << "!"
| ^~~
hello.cpp:1:11: note: to match this ‘{’
1 | int main(){
| ^