QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#150015 | #5600. Restaurant Opening | ZhaoZiLong | Compile Error | / | / | C++11 | 461b | 2023-08-25 14:53:05 | 2023-08-25 14:53:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
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); | ~~~~~^~~~~~~~~~~~~~