Problem | payraise |
---|---|
User | boaznumberd5555 |
Submission Time | 2024-11-15 15:06:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
payraise.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
payraise.cpp:8:1: note: in expansion of macro ‘int’
8 | int counter = 1;
| ^~~
payraise.cpp: In function ‘void pre(long long int, long long int)’:
payraise.cpp:10:19: error: ‘counter’ was not declared in this scope
10 | preorder[x] = counter;
| ^~~~~~~
payraise.cpp:12:21: error: cannot convert ‘std::vector<long long int>’ to ‘long long int’ in initialization
12 | for(int i: adj[x]){
| ^
payraise.cpp: At global scope:
payraise.cpp:18:16: error: expected unqualified-id before ‘)’ token
18 | struct fenwick(){
| ^
payraise.cpp: In function ‘int32_t main()’:
payraise.cpp:27:32: error: no matching function for call to ‘std::vector<std::vector<long long int> >::push_back(long long int&)’
27 | adj[i