QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#283483#6635. Strange KeyboardKingOfHuaCompile Error//C++143.3kb2023-12-14 18:04:412023-12-14 18:04:41

Details

answer.code: In function ‘int main()’:
answer.code:51:23: error: ‘d’ was not declared in this scope
   51 |             for(int j=d,c=0;c!=3;c+=(j==0),j=(j+D)%k)
      |                       ^
answer.code:51:29: error: ‘c’ was not declared in this scope
   51 |             for(int j=d,c=0;c!=3;c+=(j==0),j=(j+D)%k)
      |                             ^