QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#76127 | #5404. 述树术 | Qiuly | Compile Error | / | / | C++14 | 4.1kb | 2023-02-07 19:33:58 | 2023-12-12 14:44:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
implementer.cpp: In function ‘int main()’: implementer.cpp:124:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 124 | scanf("%d%d", &n, &m); | ~~~~~^~~~~~~~~~~~~~~~ implementer.cpp:127:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 127 | scanf("%d%d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~ implementer.cpp:145:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 145 | scanf("%d", &test_stat); | ~~~~~^~~~~~~~~~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:87:29: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 87 | for (auto & [id, L] : Q[i]) ret[id] += query (L); | ^ answer.code: In function ‘void prework()’: answer.code:99:27: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 99 | for (auto [x, l, r] : range) { | ^ answer.code: In function ‘void doit(int, int, int&, const int&)’: answer.code:124:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 124 | for (auto [x, l, r] : range) { | ^ answer.code:136:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 136 | for (auto [x, l, r] : range) u = lca (u, top[x]); | ^ /usr/bin/ld: /tmp/ccaVTHDp.o: in function `main': answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccdVkKsl.o:implementer.cpp:(.text.startup+0x0): first defined here /usr/bin/ld: /tmp/ccdVkKsl.o: in function `main': implementer.cpp:(.text.startup+0x207): undefined reference to `Solve(int)' collect2: error: ld returned 1 exit status