Problem candymountain_ex
User JoshJuice
Submission Time 2025-04-28 12:50:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:20:12: error: ‘ll’ was not declared in this scope
20 | vector<ll> p(n);
| ^~
candymountain_ex.cpp:20:14: error: template argument 1 is invalid
20 | vector<ll> p(n);
| ^
candymountain_ex.cpp:20:14: error: template argument 2 is invalid
candymountain_ex.cpp:21:43: error: invalid types ‘int[long long int]’ for array subscript
21 | for (int i = 0; i < n; ++i) cin >> p[i];
| ^
candymountain_ex.cpp:22:28: error: request for member ‘begin’ in ‘p’, which is of non-class type ‘int’
22 | int l = *min_element(p.begin(), p.end());
| ^~~~~
candymountain_ex.cpp:22:39: error: request for member ‘end’ in ‘p’, which is of non-class type ‘int’
22 | int l = *min_element(p.begin(), p.end());
|