Submission #788637

#TimeUsernameProblemLanguageResultExecution timeMemory
788637TrumlingCarnival Tickets (IOI20_tickets)C++14
Compilation error
0 ms0 KiB
#include "tickets.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define F first #define S second #define enter cout<<'\n'; #define INF 99999999999999999 #define MOD 1000000007 #define all(x) x.begin(),x.end() 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++) { for (int j = 0; j < m; j++) { answer[i].push_back(1); } 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:25:1: error: expected '}' at end of input
   25 | }
      | ^
tickets.cpp:14:54: note: to match this '{'
   14 | long long find_maximum(int k, vector<vector<int>> x) {
      |                                                      ^
tickets.cpp:18:22: warning: control reaches end of non-void function [-Wreturn-type]
   18 |  vector<vector<int>> answer;
      |                      ^~~~~~