Problem | rainbowroad |
---|---|
User | Pan |
Submission Time | 2023-12-18 20:33:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rainbowroad.cpp: In function ‘void dfs(ll, ll)’:
rainbowroad.cpp:18:20: error: conversion from ‘long long int’ to non-scalar type ‘pi’ {aka ‘std::pair<long long int, long long int>’} requested
18 | for (pi u: adj[now])
| ^
rainbowroad.cpp:3:11: error: request for member ‘first’ in ‘adj[now].std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
3 | #define f first
| ^~~~~
rainbowroad.cpp:27:19: note: in expansion of macro ‘f’
27 | if (adj[now][i].f==p) continue;
| ^
rainbowroad.cpp:3:11: error: request for member ‘first’ in ‘adj[now].std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std