| Problem | boxispull |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-07-31 23:09:13 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:6:14: error: a function-definition is not allowed here before ‘{’ token
6 | void solve() {
| ^
boxispull.cpp:14:7: error: ‘else’ without a previous ‘if’
14 | } else {
| ^~~~
boxispull.cpp:16:17: error: ‘dx’ was not declared in this scope
16 | cout << dx + dy + 2 << "\n";
| ^~
boxispull.cpp:16:22: error: ‘dy’ was not declared in this scope
16 | cout << dx + dy + 2 << "\n";
| ^~
boxispull.cpp: At global scope:
boxispull.cpp:20:5: error: redefinition of ‘int main()’
20 | int main() {
| ^~~~
boxispull.cpp:4:5: note: ‘int main()’ previously defined here
4 | int main () {
| ^~~~
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:25:9: error: ‘solve’ was not declared in this scope
25 | solve();