Submission #1302247

#TimeUsernameProblemLanguageResultExecution timeMemory
1302247nicolo_010Horses (IOI15_horses)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "sorting.h" using namespace std; using ll = long long; using pii = pair<int, int>; const int MOD = 1e9+7; int findSwapPairs(int n, int* s, int m, int* x, int* y, int* p, int* q) { int id=0; for (int i=0; i<n; i++) { int mx=0; int idx=-1; for (int j=0; j<n-i; j++) { if (idx==-1 || mx < s[j]) { idx = j; mx = s[j]; } } swap(s[idx], s[n-i-1]); p[id] = idx; q[id] = n-i-1; id++; } return id; }

Compilation message (stderr)

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