Problem | reverseandmin |
---|---|
User | blob |
Submission Time | 2023-12-11 10:09:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
reverseandmin.cpp: In function ‘int reverse_and_minimize(int, int)’:
reverseandmin.cpp:7:4: error: expected initializer before ‘while’
7 | while (x % 10 == 0) {
| ^~~~~
reverseandmin.cpp:11:13: error: ‘operations’ was not declared in this scope
11 | operations++;
| ^~~~~~~~~~
reverseandmin.cpp:18:13: error: ‘operations’ was not declared in this scope
18 | if (operations == K && x == original_x) {
| ^~~~~~~~~~
reverseandmin.cpp:18:32: error: ‘x’ was not declared in this scope
18 | if (operations == K && x == original_x) {
| ^
reverseandmin.cpp:18:37: error: ‘original_x’ was not declared in this scope
18 | if (operations == K && x == original_x) {
| ^~~~~~~~~~
reverseandmin.cpp: At global scope:
reverseandmin.cpp:23:5: error: expected unqualified-id before ‘retu