Problem | ihate1111 |
---|---|
User | Slayer555 |
Submission Time | 2023-12-27 13:35:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ihate1111.cpp: In function ‘int main()’:
ihate1111.cpp:10:12: error: invalid operands of types ‘int [n]’ and ‘int’ to binary ‘operator%’
10 | b = x % 11;
| ~ ^ ~~
| | |
| | int
| int [n]
ihate1111.cpp:11:17: error: incompatible types in assignment of ‘int’ to ‘int [n]’
11 | x -= 111 * b;
| ^
ihate1111.cpp:12:11: error: invalid operands of types ‘int [n]’ and ‘int’ to binary ‘operator%’
12 | if(x % 11 == 0 && x >= 0) cout << "YES" << "\n";
| ~ ^ ~~
| | |
| | int
| int [n]