Problem | seagame |
---|---|
User | AltheaZ |
Submission Time | 2023-11-06 11:14:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
seagame.cpp: In function ‘int main()’:
seagame.cpp:39:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator%’
39 | int median=(size%2==0)?((costs[(index+1)/2]+costs[(index-1)/2])/2):costs[index/2];
| ~~~~^~