QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#786769 | #6660. 택시 여행 | Huluobo | Compile Error | / | / | C++14 | 3.7kb | 2024-11-26 23:20:22 | 2024-11-26 23:20:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void dfs1(int)’: answer.code:42:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 42 | for (auto [v,w]:g[u]) if (v^Fa[u]) { | ^ answer.code: In function ‘void dfs2(int)’: answer.code:49:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 49 | for (auto [v,w]:g[u]) if (v^Fa[u]) top[v]=v,dfs2(v); | ^ answer.code: In function ‘void dfs(int, int, int)’: answer.code:60:29: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 60 | siz[u]=1; for (auto [v,w]:g[u]) | ^ answer.code: In function ‘int build(int)’: answer.code:67:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 67 | for (auto [v,w]:g[u]) if (!st[v]) { | ^ answer.code: At global scope: answer.code:111:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 111 | main() | ^~~~ /usr/bin/ld: /tmp/cc4EUbVy.o: in function `main': answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccAfzj9z.o:implementer.cpp:(.text.startup+0x0): first defined here collect2: error: ld returned 1 exit status