Problem finalday
User xragon
Submission Time 2024-12-09 11:17:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

finalday.cpp: In function ‘int main()’:
finalday.cpp:13:9: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
13 | y = max({arr});
| ~~~^~~~~~~
| |
| long long int*
finalday.cpp:15:6: error: expected ‘(’ before ‘y’
15 | if y - arr[j]) > 300) {
| ^
| (
finalday.cpp:18:3: error: ‘else’ without a previous ‘if’
18 | else {
| ^~~~