Problem collectmushrooms6
User Hijackedsoul
Submission Time 2023-12-16 21:58:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:34:55: error: too many arguments to function ‘int sum(int, int)’
34 | ans += (sum(i - d, j - d, i + d, j + d) >= k);
| ^
collectmushrooms6.cpp:8:5: note: declared here
8 | int sum(int a, int b) {
| ^~~