permutation.cpp: In function 'void solve(int)':
permutation.cpp:12:21: error: cannot convert 'std::vector<int>' to 'int*'
12 | int c=query(a);
| ^
| |
| std::vector<int>
In file included from permutation.cpp:2:
permutationc.h:2:15: note: initializing argument 1 of 'int query(int*)'
2 | int query(int v[]);
| ~~~~^~~
permutation.cpp:22:21: error: cannot convert 'std::vector<int>' to 'int*'
22 | int c=query(a);
| ^
| |
| std::vector<int>
In file included from permutation.cpp:2:
permutationc.h:2:15: note: initializing argument 1 of 'int query(int*)'
2 | int query(int v[]);
| ~~~~^~~
permutation.cpp:32:12: error: cannot convert 'std::vector<int>' to 'int*'
32 | answer(ans);
| ^~~
| |
| std::vector<int>
In file included from permutation.cpp:2:
permutationc.h:3:17: note: initializing argument 1 of 'void answer(int*)'
3 | void answer(int v[]);
| ~~~~^~~
stub.cpp: In function 'int query(int*)':
stub.cpp:15:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(stdin, "%d", &x);
| ~~~~~~^~~~~~~~~~~~~~~~~
stub.cpp: In function 'int main(int, char**)':
stub.cpp:48:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | fscanf(stdin, "%d", &N);
| ~~~~~~^~~~~~~~~~~~~~~~~