QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#748518 | #9731. Fuzzy Ranking | ucup-team5079 | Compile Error | / | / | C++14 | 2.3kb | 2024-11-14 20:37:04 | 2024-11-14 20:37:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:9:12: error: missing template arguments before ‘a’ 9 | vector a(k + 1, vector<int>(n + 1)), pre(a), nxt(a); | ^ answer.code:12:20: error: ‘a’ was not declared in this scope 12 | cin >> a[i][j]; | ^ answer.code:18:17: error: ‘a’ was not declared in this scope 18 | adj[a[i][j]].insert(a[i][j + 1]); | ^ answer.code:23:21: error: ‘a’ was not declared in this scope 23 | if (adj[a[i][j]].count(a[i][j - 1])) { | ^ answer.code:24:17: error: ‘pre’ was not declared in this scope 24 | pre[i][j] = pre[i][j - 1]; | ^~~ answer.code:26:17: error: ‘pre’ was not declared in this scope 26 | pre[i][j] = j; | ^~~ answer.code:29:9: error: ‘nxt’ was not declared in this scope 29 | nxt[i][n] = n; | ^~~ answer.code:31:21: error: ‘a’ was not declared in this scope 31 | if (adj[a[i][j + 1]].count(a[i][j])) { | ^ answer.code:38:12: error: missing template arguments before ‘sum’ 38 | vector sum(k + 1, vector<int>(n + 1)); | ^~~ answer.code:41:17: error: ‘pre’ was not declared in this scope 41 | if (pre[i][j] == pre[i][j - 1]) { | ^~~ answer.code:42:17: error: ‘sum’ was not declared in this scope 42 | sum[i][j] = sum[i][j - 1] + 1; | ^~~ answer.code:44:17: error: ‘sum’ was not declared in this scope 44 | sum[i][j] = 1; | ^~~ answer.code:48:13: error: ‘sum’ was not declared in this scope 48 | sum[i][j] += sum[i][j - 1]; | ^~~ answer.code:59:17: error: ‘nxt’ was not declared in this scope 59 | int L = nxt[id][l]; | ^~~ answer.code:60:17: error: ‘pre’ was not declared in this scope 60 | int R = pre[id][r]; | ^~~ answer.code:63:19: error: ‘sum’ was not declared in this scope 63 | ans = sum[id][R - 1] - sum[id][L]; | ^~~