Submission #1349309

#TimeUsernameProblemLanguageResultExecution timeMemory
1349309ramez-hammadRotating Lines (APIO25_rotate)C++20
Compilation error
0 ms0 KiB
#include <rotate.h>
#include <bits/stdc++.h>

using namespace std;

void energy(int n, std::vector<int> v) {
    sort(v.begin(), v.end());
    for (int i=0;i<n/2;i++) rotate({i+n/2}, (v[i]+25000)-v[n/2]); 
}

Compilation message (stderr)

rotate.cpp:1:10: fatal error: rotate.h: No such file or directory
    1 | #include <rotate.h>
      |          ^~~~~~~~~~
compilation terminated.