| Problem | el_classico |
|---|---|
| User | Lotr1 |
| Submission Time | 2025-08-20 16:49:43 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
el_classico.cpp: In function ‘int main()’:
el_classico.cpp:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if (N == "1" || N<1) { // &&: both must be fulfilled
| ^~~
el_classico.cpp:7:9: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
7 | print( "Hello World!" );
| ^~~~~
| printf
el_classico.cpp:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | } else if (N == "2") {
| ^~~
el_classico.cpp:9:9: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
9 | print( "Bye Bye World!");
| ^~~~~
| printf
el_classico.cpp:10:74: error: no match for ‘operator==’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘int’)
10 | } else if