QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#772072#9246. Dominating PointKangliyangCompile Error//C++141.4kb2024-11-22 16:51:132024-11-22 16:51:13

详细

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);
      |                 ~~~~~^~~~~~~~~~~