| Problem | candymountain_ex |
|---|---|
| User | definitelymaybe |
| Submission Time | 2026-01-31 20:23:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp:2:1: error: ‘cin’ does not name a type
2 | cin >> N >> K;
| ^~~
candymountain_ex.cpp:4:18: error: array bound is not an integer constant before ‘]’ token
4 | int pebbles[N + 2];
| ^
candymountain_ex.cpp:5:1: error: ‘pebbles’ does not name a type
5 | pebbles[0] = 0;
| ^~~~~~~
candymountain_ex.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for(int i = 1; i < N + 1; i++){
| ^~~
candymountain_ex.cpp:7:16: error: ‘i’ does not name a type
7 | for(int i = 1; i < N + 1; i++){
| ^
candymountain_ex.cpp:7:27: error: ‘i’ does not name a type
7 | for(int i = 1; i < N + 1; i++){
| ^
candymountain_ex.cpp:11:1: error: ‘pebbles’ does not name a type
11 | pebbles[N + 1] = 0;
| ^~~~~~~
candymountain_ex.cpp:13:13: error: array bound is not an integer constant before ‘