Problem | candycrush |
---|---|
User | aksharam |
Submission Time | 2022-12-24 16:35:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candycrush.cpp: In function ‘int calcMaxScore(int)’:
candycrush.cpp:67:10: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
67 | return max
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from candycrush.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: ‘std::max’ declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
candycrush.cpp:67:13: error: expected ‘;’ at end of input
67 | return max
| ~~~^
| ;
candycrush.cpp:67:10: error: expected ‘}’ at end of input
67 | return max
| ^~~
candycrush.cpp:41:37: note: to match this ‘{’
41 | int calcMaxScore(int popsRemaining) {
| ^