Problem helloworld
User isaacchan
Submission Time 2026-11-02 08:27:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:1:2: error: invalid preprocessing directive #iostream
1 | #iostream
| ^~~~~~~~
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:5:7: error: ‘cout’ is not a member of ‘std’
5 | std::cout<<"Hello world">>;
| ^~~~
helloworld.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #iostream
helloworld.cpp:5:28: error: expected primary-expression before ‘;’ token
5 | std::cout<<"Hello world">>;
| ^