QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#352568 | #7608. Cliques | ucup-team1617# | Compile Error | / | / | C++20 | 6.2kb | 2024-03-13 12:55:38 | 2024-03-13 12:55:39 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘mint invert(mint)’: answer.code:50:17: error: ‘assert’ was not declared in this scope 50 | assert(g == 1); return mint(x); | ^~~~~~ answer.code:5:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? 4 | #include <iostream> +++ |+#include <cassert> 5 | #include <string> answer.code: In function ‘void* operator new(size_t)’: answer.code:76:9: error: ‘assert’ was not declared in this scope 76 | assert(s < i); | ^~~~~~ answer.code:76:9: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? answer.code: In member function ‘void Node::set(int, int)’: answer.code:133:25: error: ‘assert’ was not declared in this scope 133 | assert(0 <= ntop && ntop <= num); | ^~~~~~ answer.code:133:25: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? answer.code: In member function ‘int HLD<VALS_EDGES>::process(int, int, B)’: answer.code:196:17: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive] 196 | assert(depth[v] >= depth[u]); | ^~~~~~ answer.code:196:17: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) answer.code: In lambda function: answer.code:204:57: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive] 204 | return process(u, u, [&](int l, int r) {assert(l + 1 == r); tree->set(l, val); }); | ^~~~~~ answer.code: In instantiation of ‘int HLD<VALS_EDGES>::modifyNode(int, int) [with bool VALS_EDGES = false]’: answer.code:248:17: required from here answer.code:204:63: error: ‘assert’ was not declared in this scope 204 | return process(u, u, [&](int l, int r) {assert(l + 1 == r); tree->set(l, val); }); | ~~~~~~^~~~~~~~~~~~ answer.code:204:63: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? answer.code: In instantiation of ‘int HLD<VALS_EDGES>::process(int, int, B) [with B = HLD<false>::modifyPath(int, int, int)::<lambda(int, int)>; bool VALS_EDGES = false]’: answer.code:200:20: required from ‘int HLD<VALS_EDGES>::modifyPath(int, int, int) [with bool VALS_EDGES = false]’ answer.code:247:27: required from here answer.code:196:23: error: ‘assert’ was not declared in this scope 196 | assert(depth[v] >= depth[u]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ answer.code:196:23: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? answer.code: In function ‘int main()’: answer.code:229:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 229 | scanf("%d", &N); | ~~~~~^~~~~~~~~~ answer.code:232:25: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 232 | {int u, v; scanf("%d%d", &u, &v); | ~~~~~^~~~~~~~~~~~~~~~ answer.code:240:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 240 | int Q; scanf("%d", &Q); | ~~~~~^~~~~~~~~~ answer.code:242:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 242 | char x; scanf(" %c", &x); | ~~~~~^~~~~~~~~~~ answer.code:243:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 243 | int u, v; scanf("%d%d", &u, &v); | ~~~~~^~~~~~~~~~~~~~~~