Submission #1020004

#TimeUsernameProblemLanguageResultExecution timeMemory
1020004abdelhakimArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#define mod 1000000007LL
#define inf 1e17
#define ll long long
using namespace std;

void printvec(vector<ll> vec)
{
    for (auto &&e : vec)
    {
        cout << e << ' ';
    }
    cout << endl;
}

ll count_swaps(vector<ll> s)
{
    // int n = s.size();
    // vector<ll> s(n);
    // for (int i = 0; i < n; i++)
    // {
    //     s[i] = S[i];
    // }
    return s[0] > 0;
}
// int main()
// {
//     cout << count_swaps({-1,1}) << endl;
// }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccS2BmAT.o: in function `main':
grader.cpp:(.text.startup+0x29d): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status