QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#428528 | #8771. Dihedral Group | ucup-team3600# | Compile Error | / | / | C++17 | 1.0kb | 2024-06-01 20:05:15 | 2024-06-01 20:05: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:3:14: error: ‘std::ios’ has not been declared 3 | std::ios::sync_with_stdio(false); std::cin.tie(0); | ^~~ answer.code:3:48: error: ‘cin’ is not a member of ‘std’ 3 | std::ios::sync_with_stdio(false); std::cin.tie(0); | ^~~ answer.code:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | signed main() answer.code:4:9: error: ‘cin’ was not declared in this scope 4 | cin >> n >> m; | ^~~ answer.code:4:16: error: ‘n’ was not declared in this scope 4 | cin >> n >> m; | ^ answer.code:4:21: error: ‘m’ was not declared in this scope 4 | cin >> n >> m; | ^ answer.code:5:9: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 5 | cnt = -1; | ^~~ | int answer.code:6:44: error: ‘a’ was not declared in this scope 6 | for (int i = 0; i < n; i++) cin >> a[i]; | ^ answer.code:7:44: error: ‘b’ was not declared in this scope 7 | for (int i = 0; i < m; i++) cin >> b[i], st[b[i]] = true; | ^ answer.code:7:50: error: ‘st’ was not declared in this scope; did you mean ‘std’? 7 | for (int i = 0; i < m; i++) cin >> b[i], st[b[i]] = true; | ^~ | std answer.code:9:41: error: ‘a’ was not declared in this scope 9 | for (int i = 0; i < n; i++) if (a[i]==b[0]) pos = i; | ^ answer.code:9:47: error: ‘b’ was not declared in this scope 9 | for (int i = 0; i < n; i++) if (a[i]==b[0]) pos = i; | ^ answer.code:11:13: error: ‘st’ was not declared in this scope; did you mean ‘std’? 11 | if (st[a[(pos - 1 + n) % n]]) flag = true; | ^~ | std answer.code:11:16: error: ‘a’ was not declared in this scope 11 | if (st[a[(pos - 1 + n) % n]]) flag = true; | ^ answer.code:15:22: error: ‘st’ was not declared in this scope; did you mean ‘std’? 15 | if (!st[a[i]]) { flag1 = false; break; } | ^~ | std answer.code:15:25: error: ‘a’ was not declared in this scope 15 | if (!st[a[i]]) { flag1 = false; break; } | ^ answer.code:16:17: error: ‘que’ was not declared in this scope 16 | que[++cnt] = a[i]; | ^~~ answer.code:16:30: error: ‘a’ was not declared in this scope 16 | que[++cnt] = a[i]; | ^ answer.code:22:17: error: ‘cout’ was not declared in this scope 22 | cout << 0 << endl; | ^~~~ answer.code:22:30: error: ‘endl’ was not declared in this scope 22 | cout << 0 << endl; | ^~~~ answer.code:25:41: error: ‘que’ was not declared in this scope 25 | for (int i = 0; i < m; i++) if (que[0] == b[i]) pos = i; | ^~~ answer.code:25:51: error: ‘b’ was not declared in this scope 25 | for (int i = 0; i < m; i++) if (que[0] == b[i]) pos = i; | ^ answer.code:29:21: error: ‘b’ was not declared in this scope 29 | if (b[i] != que[j]) | ^ answer.code:29:29: error: ‘que’ was not declared in this scope 29 | if (b[i] != que[j]) | ^~~ answer.code:37:21: error: ‘b’ was not declared in this scope 37 | if (b[i] != que[j]) | ^ answer.code:37:29: error: ‘que’ was not declared in this scope 37 | if (b[i] != que[j]) | ^~~ answer.code:43:29: error: ‘cout’ was not declared in this scope 43 | if (flag_1||flag_2) cout << 1 << endl; | ^~~~ answer.code:43:42: error: ‘endl’ was not declared in this scope 43 | if (flag_1||flag_2) cout << 1 << endl; | ^~~~ answer.code:44:14: error: ‘cout’ was not declared in this scope 44 | else cout << 0 << endl; | ^~~~ answer.code:44:27: error: ‘endl’ was not declared in this scope 44 | else cout << 0 << endl; | ^~~~