답안 #239371

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
239371 2020-06-15T12:52:37 Z Sorting Secret Permutation (RMI19_permutation) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#include "permutationc.h"

using namespace std;

void solve(int n){
    answer(vector<int>{});
    exit(0);
}

Compilation message

permutation.cpp: In function 'void solve(int)':
permutation.cpp:7:25: error: cannot convert 'std::vector<int>' to 'int*' for argument '1' to 'void answer(int*)'
     answer(vector<int>{});
                         ^
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);
   ~~~~~~^~~~~~~~~~~~~~~~~