| Problem | helloworld |
|---|---|
| User | Magenta |
| Submission Time | 2026-06-22 16:11:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:4:17: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
4 | const char h = "Hello World";
| ^~~~~~~~~~~~~
| |
| const char*
helloworld.cpp:5:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘const char’)
5 | cin >> h;
| ~~~ ^~ ~
| | |
| | const char
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from helloworld.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&))