permutation.cpp: In function 'long long int calc(long long int, long long int, long long int)':
permutation.cpp:34:12: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
34 | ll x=query(v);
| ^
| |
| vector<long long int>
permutation.cpp: In function 'void solve(int)':
permutation.cpp:57:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
57 | while(ans.size()<n){
| ~~~~~~~~~~^~
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);
| ~~~~~~^~~~~~~~~~~~~~~~~