QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515569 | #4930. LCS of Permutations | egypt_ioi2024_05# | Compile Error | / | / | C++20 | 1.4kb | 2024-08-11 18:48:02 | 2024-08-11 18:48:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:15:9: error: expected ‘,’ or ‘;’ before ‘flag’ 15 | flag &= b + c - 1 <= n; //Only one common element in IS and DS of perm | ^~~~ answer.code:20:17: error: ‘ll’ was not declared in this scope 20 | vector <ll> dd[b + 1]; | ^~ answer.code:20:19: error: template argument 1 is invalid 20 | vector <ll> dd[b + 1]; | ^ answer.code:20:19: error: template argument 2 is invalid answer.code:22:23: error: request for member ‘push_back’ in ‘dd[1]’, which is of non-class type ‘int’ 22 | dd[1].push_back(1); | ^~~~~~~~~ answer.code:25:23: error: request for member ‘push_back’ in ‘dd[i]’, which is of non-class type ‘int’ 25 | dd[i].push_back(c * i); | ^~~~~~~~~ answer.code:27:11: error: expected ‘;’ before ‘u’ 27 | ll u = n - (b + c - 1); //fill remaining | ^~ | ; answer.code:29:24: error: ‘u’ was not declared in this scope 29 | while (u > 0 && dd[i].back() - 1 > dd[i - 1][0]) { | ^ answer.code:29:39: error: request for member ‘back’ in ‘dd[i]’, which is of non-class type ‘int’ 29 | while (u > 0 && dd[i].back() - 1 > dd[i - 1][0]) { | ^~~~ answer.code:29:61: error: invalid types ‘int[int]’ for array subscript 29 | while (u > 0 && dd[i].back() - 1 > dd[i - 1][0]) { | ^ answer.code:30:31: error: request for member ‘push_back’ in ‘dd[i]’, which is of non-class type ‘int’ 30 | dd[i].push_back(dd[i].back() - 1); | ^~~~~~~~~ answer.code:30:47: error: request for member ‘back’ in ‘dd[i]’, which is of non-class type ‘int’ 30 | dd[i].push_back(dd[i].back() - 1); | ^~~~ answer.code:35:31: error: request for member ‘begin’ in ‘dd[i]’, which is of non-class type ‘int’ 35 | reverse(dd[i].begin(), dd[i].end()); | ^~~~~ answer.code:35:46: error: request for member ‘end’ in ‘dd[i]’, which is of non-class type ‘int’ 35 | reverse(dd[i].begin(), dd[i].end()); | ^~~ answer.code:36:31: error: request for member ‘empty’ in ‘dd[i]’, which is of non-class type ‘int’ 36 | while (!dd[i].empty()) { | ^~~~~ answer.code:37:43: error: request for member ‘back’ in ‘dd[i]’, which is of non-class type ‘int’ 37 | z.push_back(dd[i].back()); | ^~~~ answer.code:38:31: error: request for member ‘pop_back’ in ‘dd[i]’, which is of non-class type ‘int’ 38 | dd[i].pop_back(); | ^~~~~~~~