QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#44997 | #4561. Catfish Farm | ZhaoZiLong | Compile Error | / | / | C++17 | 1.2kb | 2022-08-22 12:24:08 | 2022-08-22 12:24:09 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int64_t max_weights(int, int, std::vector<int>, std::vector<int>*, std::vector<int>*)’: answer.code:29:25: error: no match for ‘operator[]’ (operand types are ‘int64_t [3010]’ {aka ‘long int [3010]’} and ‘std::vector<int>’) 29 | dp[X[i]][Y[i]] += W[i]; | ^ answer.code:30:29: error: no match for ‘operator+=’ (operand types are ‘int64_t’ {aka ‘long int’} and ‘std::vector<int>’) 30 | maxim[X[i]] += W[i]; | ~~~~~~~~~~~~^~~~~~~ answer.code:31:23: error: no match for ‘operator+=’ (operand types are ‘long long int’ and ‘std::vector<int>’) 31 | total += W[i]; | ~~~~~~^~~~~~~