Submission #399209

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

/*
2 3 2
0 2 5
1 1 3


*/

using namespace std;

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

int n,m,k,temp;

int x[MAXN][MAXM];

long find_maximum(int k, int x[MAXN][MAXM]) {
    return 1;
}

void allocate_tickets(int s[MAXM][MAXN]) {

}


int main() {

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

    cin >> n >> m >> k;

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

    cout << find_maximum(k,x);


    return 0;
}

Compilation message (stderr)

/tmp/ccmFF9bW.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccZRzi1L.o:tickets.cpp:(.text.startup+0x0): first defined here
/tmp/ccmFF9bW.o: In function `main':
grader.cpp:(.text.startup+0x3bf): undefined reference to `find_maximum(int, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'
collect2: error: ld returned 1 exit status