supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:7:26: error: 'n' was not declared in this scope
7 | for(int i = 0; i < n; i ++){
| ^
supertrees.cpp:12:26: error: 'n' was not declared in this scope
12 | for(int i = 0; i < n; i ++){
| ^
supertrees.cpp:13:17: error: 'us' was not declared in this scope
13 | if( us[i] ) continue;
| ^~
supertrees.cpp:16:25: error: 'us' was not declared in this scope
16 | if( us[j] ) return 0;
| ^~
supertrees.cpp:17:21: error: 'us' was not declared in this scope
17 | us[j] = 1;
| ^~
supertrees.cpp:22:13: error: could not convert 'ans' from 'vector<vector<long int>>' to 'vector<vector<int>>'
22 | build(ans);
| ^~~
| |
| vector<vector<long int>>