Problem | helloworld |
---|---|
User | chikin |
Submission Time | 2025-06-16 14:37:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp: In function ‘int main()’:
helloworld.cpp:5:13: error: ‘Hello’ was not declared in this scope; did you mean ‘ftello’?
5 | int a = Hello;
| ^~~~~
| ftello
helloworld.cpp:6:13: error: ‘World’ was not declared in this scope
6 | int b = World;
| ^~~~~
helloworld.cpp:7:10: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
7 | cout >> a >> " " >> b;
| ~~~~ ^~ ~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
helloworld.cpp:7:10: note: candidate: ‘operator>>(int, int)’ <built-in>
7 | cout >> a >> " " >> b;
| ~~~~~^~~~
helloworld.cpp:7:10: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int