QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#150015#5600. Restaurant OpeningZhaoZiLongCompile Error//C++11461b2023-08-25 14:53:052023-08-25 14:53:07

詳細信息

answer.code: In function ‘int main()’:
answer.code:10:16: error: missing template arguments before ‘a’
   10 |         vector a(n,vector<int> (m));
      |                ^
answer.code:14:37: error: ‘a’ was not declared in this scope
   14 |                         scanf("%d",&a[i][j]);
      |                                     ^
answer.code:25:66: error: ‘a’ was not declared in this scope
   25 |                                         ans+=(abs(x-i)+abs(y-j))*a[x][y];
      |                                                                  ^
answer.code:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%d%d",&n,&m);
      |         ~~~~~^~~~~~~~~~~~~~