QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#31287 | #4011. 计算几何 | flower | Compile Error | / | / | C++98 | 5.1kb | 2022-05-06 13:27:18 | 2022-05-18 04:28:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void bruteforce(int, int, int)’: answer.code:39:14: error: ‘adjacent’ does not name a type 39 | auto adjacent = [&](int i, int j) { | ^~~~~~~~ answer.code:54:53: error: ‘adjacent’ was not declared in this scope 54 | if (adjacent(i, j)) { | ^~~~~~~~ answer.code: In function ‘void solve(int, int, int)’: answer.code:98:14: error: ‘row_valid’ does not name a type 98 | auto row_valid = [&](int mask) { | ^~~~~~~~~ answer.code:101:14: error: ‘trans_valid’ does not name a type 101 | auto trans_valid = [&](int mask1, int mask2) { | ^~~~~~~~~~~ answer.code:106:14: error: ‘get_left’ does not name a type 106 | auto get_left = [&](int y) { | ^~~~~~~~ answer.code:109:14: error: ‘get_right’ does not name a type 109 | auto get_right = [&](int y) { | ^~~~~~~~~ answer.code:112:14: error: ‘get_full_mask’ does not name a type 112 | auto get_full_mask = [&](int l, int r) -> unsigned { | ^~~~~~~~~~~~~ answer.code:126:36: error: ‘>>’ should be ‘> >’ within a nested template argument list 126 | std::vector<std::vector<int>> valid_trans(1 << total); | ^~ | > > answer.code:128:21: error: ‘row_valid’ was not declared in this scope 128 | if (row_valid(i)) { | ^~~~~~~~~ answer.code:132:26: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 132 | for (int mask1 : all_valid_masks) | ^~~~~~~~~~~~~~~ answer.code:132:26: error: forming reference to reference type ‘std::vector<int>&’ answer.code:133:34: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 133 | for (int mask2 : all_valid_masks) | ^~~~~~~~~~~~~~~ answer.code:133:34: error: forming reference to reference type ‘std::vector<int>&’ answer.code:134:29: error: ‘trans_valid’ was not declared in this scope 134 | if (trans_valid(mask1, mask2) && ((mask1 & even_mask) == 0 || (mask2 & even_mask) == 0)) { | ^~~~~~~~~~~ answer.code:140:25: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 140 | for (int mask : all_valid_masks) | ^~~~~~~~~~~~~~~ answer.code:140:25: error: forming reference to reference type ‘std::vector<int>&’ answer.code:143:30: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 143 | for (int i : all_valid_masks) | ^~~~~~~~~~~~~~~ answer.code:143:30: error: forming reference to reference type ‘std::vector<int>&’ answer.code:145:30: error: ‘get_left’ was not declared in this scope 145 | int left_x = get_left(y), right_x = get_right(y); | ^~~~~~~~ answer.code:146:55: error: ‘right_x’ was not declared in this scope 146 | int full_mask = get_full_mask(left_x, right_x); | ^~~~~~~ answer.code:146:33: error: ‘get_full_mask’ was not declared in this scope; did you mean ‘full_mask’? 146 | int full_mask = get_full_mask(left_x, right_x); | ^~~~~~~~~~~~~ | full_mask answer.code:149:30: error: ‘row_valid’ was not declared in this scope 149 | if (!row_valid(mask)) | ^~~~~~~~~ answer.code:153:46: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 153 | for (int next_mask : valid_trans[mask]) { | ^~~~~~~~~~~ answer.code:153:62: error: forming reference to reference type ‘std::vector<int>&’ 153 | for (int next_mask : valid_trans[mask]) { | ^ answer.code: In function ‘void solve_equal(int, int, int)’: answer.code:187:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] 187 | printf("%lld %d\n", max, ways); | ~~~^ ~~~ | | | | | int64_t {aka long int} | long long int | %ld answer.code: In function ‘int main()’: answer.code:193:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 193 | sc...