QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#152181 | #5477. Cake Decoration | ntu_vjudge_1 | Compile Error | / | / | C++17 | 1.5kb | 2023-08-27 17:55:00 | 2023-08-27 17:55:02 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void build_hmap(std::vector<std::__cxx11::basic_string<char> >&, std::vector<std::vector<long long int> >&, long long int, long long int)’: answer.code:35:26: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator*’ 35 | hmap[i][j] = (prev * K + (mp[i-1][j-1] == 'o')) % MOD; | ~~~~~^~~ answer.code:36:23: error: overloaded function with no contextual type information 36 | prev = hmap[i][j]; | ^ answer.code: In function ‘long long int get_subtable(std::vector<std::vector<long long int> >&, long long int, long long int, long long int, long long int, long long int, long long int)’: answer.code:42:90: error: ‘M’ was not declared in this scope 42 | return (hmap[i2][j2] - hmap[i2][j1] - hmap[i1][j2] + hmap[i1][j1]) * pw(K, MOD - (i1 * M + j1) % (MOD - 1), MOD); | ^ answer.code: In function ‘void check()’: answer.code:46:23: error: ‘N’ was not declared in this scope 46 | for (int i = 0; i < N; i++) { | ^ answer.code:47:25: error: ‘M’ was not declared in this scope 47 | for (int j = 0; j < M; j++) { | ^ answer.code:48:11: error: ‘mp’ was not declared in this scope; did you mean ‘mp2’? 48 | if (mp[i][j] == 'x') continue; | ^~ | mp2 answer.code: In function ‘int main()’: answer.code:62:14: error: expected ‘)’ before ‘;’ token 62 | rotate(mp2); | ^ | ) answer.code:61:6: note: to match this ‘(’ 61 | if (check(); | ^ answer.code:62:9: error: could not convert ‘rotate(mp2)’ from ‘void’ to ‘bool’ 62 | rotate(mp2); | ~~~~~~^~~~~ | | | void