QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#315261#8169. R-Connected Componentsucup-team1005#Compile Error//C++141.8kb2024-01-27 09:52:442024-01-27 09:52:44

详细

answer.code: In function ‘int test()’:
answer.code:30:16: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   30 |           auto [x, y] = c.front(); c.pop();
      |                ^
answer.code:31:21: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   31 |           for (auto [dx, dy] : dv) {
      |                     ^
answer.code: In function ‘void solve()’:
answer.code:58:11: error: ‘gcd’ was not declared in this scope
   58 |       g = gcd(g, i);
      |           ^~~
answer.code:68:13: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   68 |   for (auto [x, y] : dv) {
      |             ^