Problem powerfulmaxsum
User YSH2020
Submission Time 2025-05-18 20:15:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

powerfulmaxsum.cpp: In function ‘int main()’:
powerfulmaxsum.cpp:17:24: error: ‘pref’ cannot be used as a function
17 | ans = max(ans, pref(i)-m);
| ^
powerfulmaxsum.cpp:28:20: error: ‘pref’ cannot be used as a function
28 | pq1.push(pref(i-1));
| ^