| Problem | duckhunt23 |
|---|---|
| User | GrainOrBread |
| Submission Time | 2025-12-08 10:12:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt23.cpp: In function ‘int main()’:
duckhunt23.cpp:92:39: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
92 | if (n==1) {cout << -arr[0] << "\n"; return;}
| ^~~~~~
duckhunt23.cpp:93:46: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
93 | if (n==2) {cout << -arr[0]-arr[1] << "\n"; return;
| ^~~~~~
duckhunt23.cpp:97:4: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
97 | return;
| ^~~~~~
duckhunt23.cpp:171:1: error: expected ‘}’ at end of input
171 | }
| ^
duckhunt23.cpp:77:12: note: to match this ‘{’
77 | int main() {
| ^