Submission #433687

#TimeUsernameProblemLanguageResultExecution timeMemory
433687SAADCarnival Tickets (IOI20_tickets)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <math.h> #include <algorithm> #include <vector> #include <string.h> #include "tickets.h" using namespace std; __int64 find_maximum(int k, vector<vector<int>> x) { __int64 a; vector<vector<int>> x1(x.size()) ; __int64 sum = 0 , s = 0 ; for (int i = 0; i < x.size(); i++) { sum += x[i][0]; x1[i].push_back(0); } sum /= x.size(); __int64 mx = 1e18 ; for (int j = max(sum-2, 0LL); j < max(sum-2, 0LL) + 3; j++) { s = 0; for (int i = 0; i < x.size(); i++) { s += abs(x[i][0] - sum); } mx = min(s,mx); } allocate_tickets(x1); return mx; }

Compilation message (stderr)

tickets.cpp:9:1: error: '__int64' does not name a type; did you mean '__rintf64'?
    9 | __int64 find_maximum(int k, vector<vector<int>> x) {
      | ^~~~~~~
      | __rintf64