QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#762707#5312. Levenshtein DistanceZhangYiDeCompile Error//C++141.6kb2024-11-19 16:18:342024-11-19 16:18:34

Details

answer.code: In function ‘int main()’:
answer.code:46:71: error: ‘w’ was not declared in this scope
   46 |                                 f[i+1][j+k]=max(f[i+1][j+k],f[i][j+k]+w); // exchange
      |                                                                       ^
answer.code:35:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   35 |         scanf("%s%s",s+1,t+1);
      |         ~~~~~^~~~~~~~~~~~~~~~