QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#601123#26. Jumbled password114514114514Compile Error//C++20379b2024-09-29 20:54:512024-09-29 20:54:52

Details

answer.code: In function ‘int main()’:
answer.code:20:19: error: invalid types ‘int[int]’ for array subscript
   20 |         }else if(a[0]=='b'){
      |                   ^
answer.code:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~