QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#180069 | #2169. 'S No Problem | Alleks_B | Compile Error | / | / | C++14 | 320b | 2023-09-15 15:18:57 | 2023-09-15 15:18:58 |
Judging History
answer
#include <bits/stdc++.h>
#define L 100005
using namespace std;
int n;
vector <pair <int, int>> G[L];
int root = 1;
int main(){
cin >> n;
for (int i = 1; i < n; i++) {
int a, b, c;
cin >> a >> b >> c;
G[a].push_back({b, c});
G[b].push_back({a, c});
}
DFS(root);
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:17:3: error: ‘DFS’ was not declared in this scope 17 | DFS(root); | ^~~