Problem | candymountain_ex |
---|---|
User | Phoubia01 |
Submission Time | 2025-08-22 23:09:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:10:12: error: ‘ll’ was not declared in this scope
10 | vector<ll> pebbles(n);
| ^~
candymountain_ex.cpp:10:14: error: template argument 1 is invalid
10 | vector<ll> pebbles(n);
| ^
candymountain_ex.cpp:10:14: error: template argument 2 is invalid
candymountain_ex.cpp:12:25: error: invalid types ‘int[int]’ for array subscript
12 | cin >> pebbles[i];
| ^
candymountain_ex.cpp:15:7: error: expected ‘;’ before ‘high’
15 | ll high = *max_element(pebbles.begin(), pebbles.end());
| ^~~~~
| ;
candymountain_ex.cpp:17:7: error: expected ‘;’ before ‘result’
17 | ll result = high;
| ^~~~~~~
| ;
candymountain_ex.cpp:19:19: error: ‘high’ was not declared in this scope
19 | while (low <= high) {