Submission #399212

#TimeUsernameProblemLanguageResultExecution timeMemory
399212daanolavCarnival Tickets (IOI20_tickets)C++14
Compilation error
0 ms0 KiB
#include <iostream>
#include <vector>

/*
2 3 2
0 2 5
1 1 3


*/

using namespace std;

#define INF 1<<29
#define MAXN 301
#define MAXM 301

typedef vector<int> vi;
typedef vector<vi> vvi;

int n,m,k,temp;

vvi x;

long find_maximum(int k, vvi x) {
    return 1;
}

void allocate_tickets(vvi s) {

}

/*
int main() {

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    cin >> n >> m >> k;

    for(int i = 0; i < n; ++i) {
        x.push_back(vi());
        for(int j = 0; j < m; ++j) {
            cin >> temp;
            x[i].push_back(temp);
        }
    }

    cout << find_maximum(k,x);


    return 0;
}
*/

Compilation message (stderr)

/tmp/ccoH2ncf.o: In function `allocate_tickets(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)':
grader.cpp:(.text+0x1f0): multiple definition of `allocate_tickets(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'
/tmp/ccwSXQDL.o:tickets.cpp:(.text+0x10): first defined here
collect2: error: ld returned 1 exit status