Problem el_classico
User Lotr1
Submission Time 2025-08-20 16:48:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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" || (long long)N<1) { // &&: both must be fulfilled
| ^~~
el_classico.cpp:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | } else if (N == "2") {
| ^~~
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 (std::cout << "Modulus: " << (long long)N % 7 << std::endl == 0 || std::cout << "Modulus: " << (long long)N % 11 << std::endl == 0){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
| | |
|