Problem blockrain
User JohnC
Submission Time 2025-12-29 16:42:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

blockrain.cpp: In function ‘int32_t main()’:
blockrain.cpp:21:51: error: ‘max_element’ cannot be used as a function
21 | int max_element = *max_element(a.begin(), a.end());
| ^
blockrain.cpp:27:33: error: expected ‘;’ before ‘}’ token
27 | if (h){filled[i] = max_element};
| ^
| ;
blockrain.cpp:28:3: error: ‘else’ without a previous ‘if’
28 | else{
| ^~~~