Submission
Status:
Compilation Error
Subtask/Task Score:
Score: 0
User: kakcode
Problemset: เก็บกราฟเบื้องต้น
Language: cpp
Time: 0.000 second
Submitted On: 2025-12-12 16:59:02
/*
TASK: เก็บกราฟเบื้องต้น
LANG: C++
AUTHOR: ICE
*/
#include <bits/stdc++.h>
#include "adjacency_list.h"
using ll = long long;
#define forr(i, a, n) for (int i = a; i < n; i++)
const ll inf = 10e9;
#define int ll
using namespace std;
using pii = pair<int,int>;
std::vector<std::vector<int> > createGraph(int N, std::vector<std::pair<int, int> > E) {
std::vector<std::vector<int> > adj(N);
for(auto [u, v] : E){
adj[u].push_back(v);
adj[v].push_back(u);
}
return adj;
}