QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
answer.code: In function ‘int main()’: answer.code:17:3: error: ‘DFS’ was not declared in this scope 17 | DFS(root); | ^~~