QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#150023 | #5600. Restaurant Opening | ZhangYiDe | Compile Error | / | / | C++11 | 465b | 2023-08-25 14:55:14 | 2023-08-25 14:55:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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); | ~~~~~^~~~~~~~~~~~~~