Problem helloworld
User Dannyboy
Submission Time 2023-11-08 10:17:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:2: error: ‘string’ was not declared in this scope
3 | string str1="Hello World";
| ^~~~~~
helloworld.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | using namespace std;