QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#729445#9570. Binary Treeucup-team4883#Compile Error//C++142.0kb2024-11-09 17:08:142024-11-09 17:08:15

详细

answer.code: In function ‘void divid(int)’:
answer.code:78:1: error: ‘s’ was not declared in this scope
   78 | s       vis[u]=1;
      | ^
answer.code: In function ‘int query(int, int)’:
answer.code:36:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |         scanf("%d",&res);
      |         ~~~~~^~~~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:94:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:98:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   98 |                 scanf("%d%d",&x,&y);
      |                 ~~~~~^~~~~~~~~~~~~~