제출 #1358823

#제출 시각아이디문제언어결과실행 시간메모리
1358823maya_sWorm Worries (BOI18_worm)C++20
컴파일 에러
0 ms0 KiB
#include "sorting.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;

int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) {\
	vector<ll> v(n);
	for(ll i = 0; i < n; i++) v[i] = s[i];
	ll cnt = 0;
	for(ll i = 0; i < n; i++){
		for(ll j = i+1; j < n; j++) if(v[j] == i){
			swap(v[i], v[j]);
			p[cnt] = i, q[cnt] = j;
			cnt++;
			break;
		}
	}
	return cnt;
}


컴파일 시 표준 에러 (stderr) 메시지

worm.cpp:1:10: fatal error: sorting.h: No such file or directory
    1 | #include "sorting.h"
      |          ^~~~~~~~~~~
compilation terminated.