Problem seagame
User AltheaZ
Submission Time 2023-11-06 11:10:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seagame.cpp: In function ‘int main()’:
seagame.cpp:38:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator%’
38 | int median=(size%2==0)?((costs[costs.size()/2]+costs[costs.size()/2-1])/2):costs[costs.size()/2];
| ~~~~^~