QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#76127#5404. 述树术QiulyCompile Error//C++144.1kb2023-02-07 19:33:582023-12-12 14:44:23

詳細信息

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