Problem helloworld
User angelanglez
Submission Time 2025-01-15 15:38:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:2: error: ‘cout’ was not declared in this scope
3 | cout << "Hello World";
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
helloworld.cpp:4:1: error: expected primary-expression before ‘]’ token
4 | ]
| ^
helloworld.cpp:4:1: error: expected ‘}’ at end of input
helloworld.cpp:2:12: note: to match this ‘{’
2 | int main() {
| ^