QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#33380#1265. Total EclipseZhaoZiLongCompile Error//C++141.3kb2022-05-31 23:39:382022-05-31 23:39:40

详细

answer.code:7:1: error: ‘vector’ does not name a type
    7 | vector<vector<int>> g;
      | ^~~~~~
answer.code: In function ‘int main()’:
answer.code:23:9: error: ‘g’ was not declared in this scope
   23 |         g.resize(n+1);
      |         ^
answer.code:20:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~
answer.code:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d %d",&n,&m);
      |         ~~~~~^~~~~~~~~~~~~~~
answer.code:25:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   25 |             scanf("%d",&c[i].val);
      |             ~~~~~^~~~~~~~~~~~~~~~
answer.code:31:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   31 |             scanf("%d %d",&a,&b);
      |             ~~~~~^~~~~~~~~~~~~~~