QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#864890#9678. 网友小 Z 的树yoy68Compile Error//C++141.1kb2025-01-21 10:46:012025-01-21 10:46:08

详细

answer.code: In function ‘int ask(int, int, int)’:
answer.code:16:53: error: ‘query’ was not declared in this scope
   16 |   return mp.count({x,y,z})?mp[{x,y,z}]:(mp[{x,y,z}]=query(x,y,z));
      |                                                     ^~~~~
answer.code: In function ‘std::pair<int, int> find_diameter(int, int)’:
answer.code:24:10: error: ‘in’ was not declared in this scope; did you mean ‘nn’?
   24 |       if(in(1,2,3))return{2,3};
      |          ^~
      |          nn
answer.code:25:10: error: ‘in’ was not declared in this scope; did you mean ‘nn’?
   25 |       if(in(2,1,3))return{1,3};
      |          ^~
      |          nn
answer.code:34:6: error: ‘in’ was not declared in this scope; did you mean ‘nn’?
   34 |   if(in(u,v,x))return {v,w};
      |      ^~
      |      nn
answer.code:35:6: error: ‘in’ was not declared in this scope; did you mean ‘nn’?
   35 |   if(in(x,u,w))swap(u,v);
      |      ^~
      |      nn