swap.cpp:4:25: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
4 | vector<pair<int,int>> g[1e6];
| ^~~
swap.cpp:4:25: error: could not convert '1.0e+6' from 'double' to 'long unsigned int'
4 | vector<pair<int,int>> g[1e6];
| ^~~
| |
| double
swap.cpp:4:25: error: size of array 'g' has non-integral type 'double'
swap.cpp:5:10: error: 'N' was not declared in this scope
5 | int used[N];
| ^
swap.cpp: In function 'void dfs(int)':
swap.cpp:11:9: error: 'used' was not declared in this scope
11 | used[v]=1;
| ^~~~