Problem helloworld
User Xsomeone
Submission Time 2024-09-16 16:35:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:4:15: error: ‘cin’ was not declared in this scope
4 | int a, b, c; cin >> a >> b >> c;
| ^~~
helloworld.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
helloworld.cpp:5:2: error: ‘cout’ was not declared in this scope
5 | cout <<" Hello World";
| ^~~~
helloworld.cpp:5:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?