Submission #239374

#TimeUsernameProblemLanguageResultExecution timeMemory
239374SortingSecret Permutation (RMI19_permutation)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "permutationc.h" using namespace std; void solve(int n){ answer(vector<int>{1, 2, 3}); exit(0); }

Compilation message (stderr)

permutation.cpp: In function 'void solve(int)':
permutation.cpp:7:32: error: cannot convert 'std::vector<int>' to 'int*' for argument '1' to 'void answer(int*)'
     answer(vector<int>{1, 2, 3});
                                ^
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]
   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]
   fscanf(stdin, "%d", &N);
   ~~~~~~^~~~~~~~~~~~~~~~~