Problem | helloworld |
---|---|
User | Sarah5678 |
Submission Time | 2024-01-29 15:48:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp:2:1: error: ‘usingnamespacestd’ does not name a type
2 | usingnamespacestd;
| ^~~~~~~~~~~~~~~~~
helloworld.cpp:3:9: error: ISO C++ forbids declaration of ‘intmain’ with no type [-fpermissive]
3 | intmain(){
| ^
helloworld.cpp: In function ‘int intmain()’:
helloworld.cpp:4:2: error: ‘string’ was not declared in this scope
4 | string"Hello World"!
| ^~~~~~
helloworld.cpp:4:2: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from helloworld.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: