Problem matsuri
User Celest
Submission Time 2023-08-14 16:54:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

matsuri.cpp: In function ‘int main()’:
matsuri.cpp:22:22: error: expected primary-expression before ‘|’ token
22 | if(happy[x]-k*(|x-start[y]|)>max[y]){
| ^
matsuri.cpp:22:34: error: expected primary-expression before ‘)’ token
22 | if(happy[x]-k*(|x-start[y]|)>max[y]){
| ^
matsuri.cpp:23:28: error: expected primary-expression before ‘|’ token
23 | max[y]=happy[x]-k*(|x-start[y]|);
| ^
matsuri.cpp:23:40: error: expected primary-expression before ‘)’ token
23 | max[y]=happy[x]-k*(|x-start[y]|);
| ^