Submission #765553

#TimeUsernameProblemLanguageResultExecution timeMemory
765553LudisseyArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include "shoes.h"
#include <iostream>
#include <string>
#include <set>
#include <map>
#include <cstring>
#include <unordered_map>
#include <vector>
#include <fstream>
#include <bitset>
#include <tuple>
#include <cmath>
#include <cstdint>
#include <stack>
#include <cassert>
#include <cstdio>
#include <queue>
#include <iterator>
#include <iomanip>
#include <algorithm>
#include <sstream> 

#define INF  9223372036854775801
#define int long long
#define LL (long long)
#define double long double

#define MOD(a) ((a) % 1000000007  + 1000000007 ) % 1000000007
#define FI first
#define caseOut(t) cout << "Case " << t << ": "; 
#define SE second
#define USACO_SETUP() ifstream cin("paint.in"); ofstream cout("paint.out");
#define SETUP() ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;

long long count_swaps(std::vector<int> s) {
    if (s[0] > 0) {
        swap(s[0], s[1]);
        return (long long)1;
    }
    else {
        return (long long)0;
    }
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccvoAuBL.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