art.cpp:16:8: warning: use of 'auto' in parameter declaration only available with '-fconcepts-ts'
16 | void p(auto A){
| ^~~~
art.cpp: In function 'void solve(int64_t)':
art.cpp:32:21: error: could not convert 'gen(int64_t, int64_t)(N)' from 'vector<long int>' to 'vector<int>'
32 | int x = publish(gen(1, N));
| ~~~^~~~~~
| |
| vector<long int>
art.cpp:34:47: error: could not convert 'gen(int64_t, int64_t)(N)' from 'vector<long int>' to 'vector<int>'
34 | for(int i = 2; i<= N; i++)A[i] = (publish(gen(i, N))-(x-i+1))/2;
| ~~~^~~~~~
| |
| vector<long int>
art.cpp:47:9: error: could not convert 'ans' from 'vector<long int>' to 'vector<int>'
47 | answer(ans);
| ^~~
| |
| vector<long int>
art.cpp: In function 'int main()':
art.cpp:55:9: error: 't' was not declared in this scope
55 | cin >> t;
| ^
art.cpp:56:18: error: no matching function for call to 'solve()'
56 | while(t--)solve();
| ^
In file included from art.cpp:2:
art.h:17:6: note: candidate: 'void solve(int)'
17 | void solve(int N);
| ^~~~~
art.h:17:6: note: candidate expects 1 argument, 0 provided
art.cpp:31:6: note: candidate: 'void solve(int64_t)'
31 | void solve(int N){
| ^~~~~
art.cpp:31:6: note: candidate expects 1 argument, 0 provided
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(v.size() != N) {
| ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(v.size() != N) {
| ~~~~~~~~~^~~~