Problem candymountain_ex
User louisleehi
Submission Time 2024-04-10 10:57:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp:4:9: error: ‘ll’ does not name a type
4 | typedef ll long long;
| ^~
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:6:3: error: ‘ll’ was not declared in this scope
6 | ll n,k;
| ^~
candymountain_ex.cpp:7:8: error: ‘n’ was not declared in this scope
7 | cin>>n>>k;
| ^
candymountain_ex.cpp:7:11: error: ‘k’ was not declared in this scope
7 | cin>>n>>k;
| ^
candymountain_ex.cpp:10:10: error: ‘arr’ was not declared in this scope
10 | cin>>arr[i];
| ^~~
candymountain_ex.cpp:17:29: error: ‘maximum’ was not declared in this scope; did you mean ‘maximumn’?
17 | if(s.size() == k) maximumn=maximum(maximumn,*s.begin());
| ^~~~~~~
| maximumn
candymountain_ex.cpp:20:9: error: ‘maximumn’ was not declared i