Problem | evenorodd |
---|---|
User | Ping888 |
Submission Time | 2023-03-07 23:38:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp:4:6: error: ‘cout’ in namespace ‘std’ does not name a type
4 | std::cout << someString << "\n";
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from evenorodd.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:12:17: error: no matching function for call to ‘std::__cxx11::basic_string<char>::basic_string(int)’
12 | string o('Odd');
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include