Problem | housevisit |
---|---|
User | chenweilian |
Submission Time | 2024-04-13 09:22:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
housevisit.cpp: In function ‘void dfs(long long int)’:
housevisit.cpp:16:13: error: request for member ‘first’ in ‘(& child.std::vector<std::vector<long long int> >::operator[](((std::vector<std::vector<long long int> >::size_type)cur)))->std::vector<long long int>::operator[](((std::vector<long long int>::size_type)(i - 1)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
16 | #define fir first
| ^~~~~
housevisit.cpp:25:41: note: in definition of macro ‘FOR’
25 | #define FOR(i, s, e) for(int i = s; i < e; i++)
| ^
housevisit.cpp:92:45: note: in expansion of macro ‘fir’
92 | FOR(j, 2, sum + sub[child[cur][i-1].fir] + 2) {
| ^~~
housevisit.cpp:16:13: error: request for member ‘first’ in ‘