| Problem | hello |
|---|---|
| User | Lypho |
| Submission Time | 2024-12-02 10:18:04 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
hello.cpp: In function ‘int main()’:
hello.cpp:7:8: error: expected primary-expression before ‘,’ token
7 | cout <, "Hello " << n << "!";
| ^
hello.cpp:7:19: error: no match for ‘operator<<’ (operand types are ‘const char [7]’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
7 | cout <, "Hello " << n << "!";
| ~~~~~~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| const char [7]
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from hello.cpp:1:
/usr/include/c++/9/bits/regex.h:1553:5: note: candidate: ‘template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Trai