QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772072#9246. Dominating PointKangliyangCompile Error//C++141.4kb2024-11-22 16:51:132024-11-22 16:51:13

Details

answer.code: In function ‘int main()’:
answer.code:50:39: error: invalid types ‘char[int]’ for array subscript
   50 |                         a[i][j]=(cc[i][j]-'0'),s[i]+=(cc[i][j]-'0');
      |                                       ^
answer.code:50:60: error: invalid types ‘char[int]’ for array subscript
   50 |                         a[i][j]=(cc[i][j]-'0'),s[i]+=(cc[i][j]-'0');
      |                                                            ^
answer.code:48:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   48 |                 scanf("%s",cc+1);
      |                 ~~~~~^~~~~~~~~~~