QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#486105#6743. water235ZhangYiDeCompile Error//C++17597b2024-07-21 16:19:192024-07-21 16:19:20

详细

answer.code:5:1: error: ‘Vector’ does not name a type
    5 | Vector <int> a[1000007];
      | ^~~~~~
answer.code: In function ‘int32_t main()’:
answer.code:11:1: error: ‘a’ was not declared in this scope
   11 | a[i].push_back(0);
      | ^
answer.code:17:10: error: ‘a’ was not declared in this scope
   17 | res+= 1- a[i][1];
      |          ^
answer.code:25:10: error: ‘a’ was not declared in this scope
   25 | res+= 1- a[i][1];
      |          ^
answer.code:33:10: error: ‘a’ was not declared in this scope
   33 | res+= 1- a[1][i];
      |          ^
answer.code:41:10: error: ‘a’ was not declared in this scope
   41 | res+= 1- a[1][i];
      |          ^
answer.code:48:32: error: ‘a’ was not declared in this scope
   48 | for (int j=1;j<=m;j++) cout << a[i][j] << "  ";
      |                                ^