Problem | evenorodd |
---|---|
User | SideQuesting |
Submission Time | 2025-06-16 16:12:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:3:6: error: ‘number’ was not declared in this scope
3 | if (number%2=0) {string = "even"};
| ^~~~~~
evenorodd.cpp:3:19: error: ‘string’ was not declared in this scope
3 | if (number%2=0) {string = "even"};
| ^~~~~~
evenorodd.cpp:3:19: 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 evenorodd.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
|