QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#639565 | #4925. Adjacent Pairs | MaMengQi | Compile Error | / | / | C++14 | 2.6kb | 2024-10-13 20:28:21 | 2024-10-13 20:28:21 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:43:1: error: ‘vector’ does not name a type 43 | vector<int> vec[N]; | ^~~~~~ answer.code: In function ‘void init()’: answer.code:46:97: error: ‘vec’ was not declared in this scope 46 | for(int i=1; i<=n; i++) cnt[0][i] = cnt[1][i] = l[i] = r[i] = len[i] = x[i] = y[i] = 0, vec[i].clear(); | ^~~ answer.code: In function ‘int main()’: answer.code:67:61: error: ‘vec’ was not declared in this scope 67 | if(!cntpr.count(mkp(x[tp], y[tp]))) vec[x[tp]].pb(y[tp]); | ^~~ answer.code:89:57: error: ‘vec’ was not declared in this scope 89 | while(j<=n && (i==p[j] || count(vec[i].begin(), vec[i].end(), p[j]) )) ++j; | ^~~ answer.code:92:37: error: ‘vec’ was not declared in this scope 92 | for(auto j: vec[i]){ | ^~~