QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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.
详细
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]; | ~~~~~~^~~~~~~