Submission #652044

#TimeUsernameProblemLanguageResultExecution timeMemory
652044mychecksedadCarnival Tickets (IOI20_tickets)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; long long find_maximum(int k, std::vector<std::vector<int>> x) { int n = x.size(); int m = x[0].size(); std::vector<std::vector<int>> answer; for (int i = 0; i < n; i++) { std::vector<int> row(m, 1); answer.push_back(row); } allocate_tickets(answer); return 1; }

Compilation message (stderr)

tickets.cpp: In function 'long long int find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:14:2: error: 'allocate_tickets' was not declared in this scope
   14 |  allocate_tickets(answer);
      |  ^~~~~~~~~~~~~~~~