QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#835709#9306. Tree Tweaking3un_larryfuncCompile Error//C++147.0kb2024-12-28 14:07:382024-12-28 14:07:39

詳細信息

answer.code: In function ‘ll calc(vi&)’:
answer.code:60:16: error: missing template arguments before ‘(’ token
   60 |     q.push(pair(st[1], 0));
      |                ^
answer.code:63:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   63 |         auto [u, d] = q.front();
      |              ^
answer.code:66:34: error: missing template arguments before ‘(’ token
   66 |         if (ch[u][0]) q.push(pair(ch[u][0], d + 1));
      |                                  ^
answer.code:67:34: error: missing template arguments before ‘(’ token
   67 |         if (ch[u][1]) q.push(pair(ch[u][1], d + 1));
      |                                  ^