QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#863479#9986. Shioriucup-team425Compile Error//C++145.3kb2025-01-19 17:51:442025-01-19 17:51:45

Details

answer.code:16:12: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’
   16 | bool ckmin(auto&a,auto b){return b<a?a=b,1:0;}
      |            ^~~~
answer.code:16:19: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’
   16 | bool ckmin(auto&a,auto b){return b<a?a=b,1:0;}
      |                   ^~~~
answer.code:17:12: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’
   17 | bool ckmax(auto&a,auto b){return b>a?a=b,1:0;}
      |            ^~~~
answer.code:17:19: warning: use of ‘auto’ in parameter declaration only available with ‘-std=c++20’ or ‘-fconcepts’
   17 | bool ckmax(auto&a,auto b){return b>a?a=b,1:0;}
      |                   ^~~~
answer.code: In function ‘bool qry(int, int, int, int, int)’:
answer.code:113:23: error: ‘tree_min’ was not declared in this scope
  113 |     if (tree_sz[id] * tree_min[id] == tree_sum[id]) {
      |                       ^~~~~~~~
answer.code: In function ‘int main()’:
answer.code:198:24: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  198 |             for (auto& [i, v]: restore_vec) {
      |                        ^