QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#693590#9447. Admired Personucup-team2401#Compile Error//C++14817b2024-10-31 16:26:152024-10-31 16:26:19

詳細信息

answer.code: In function ‘int main()’:
answer.code:25:12: error: missing template arguments before ‘dp’
   25 |     vector dp(n + 1, vector<int>(m + 1, INF));
      |            ^~
answer.code:27:9: error: ‘dp’ was not declared in this scope
   27 |         dp[i][0] = 0;
      |         ^~
answer.code:31:13: error: ‘dp’ was not declared in this scope
   31 |             dp[i][j] = min(dp[i - 1][j], dp[i - 1][j - 1] + abs(a[i] - b[j]));
      |             ^~
answer.code:34:13: error: ‘dp’ was not declared in this scope
   34 |     cout << dp[n][m] << '\n';
      |             ^~