Submission #310298

#TimeUsernameProblemLanguageResultExecution timeMemory
310298APROHACKCarnival Tickets (IOI20_tickets)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; long long find_maximum(int k, vector<vector<int> > x) { int n = x.size(); int m = x[0].size(); vector<vector<int> > answer; /* for (int i = 0; i < n; i++) { std::vector<int> row(m); for (int j = 0; j < m; j++) { if (j < k) { row[j] = j; } else { row[j] = -1; } } answer.push_back(row); } */ for(int i = 0 ; i < n ; i ++){ vector<int>a; for(int j = 0 ; j < m ; j ++){ a.push_back(0); } answer.push_back(a); } 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:29:2: error: 'allocate_tickets' was not declared in this scope
   29 |  allocate_tickets(answer);
      |  ^~~~~~~~~~~~~~~~