Submission #419195

#TimeUsernameProblemLanguageResultExecution timeMemory
419195LouayFarahTeams (IOI15_teams)C++14
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #include "boxes.h" using namespace std; #define pb push_back #define mp make_pair #define fi first #define se second int n; vector<pair<int, int>> students; vector<int> cnt; void init(int N, int a[], int b[]) { n = N; for(int i = 0; i<n; i++) { students.pb(mp(a[i], b[i])); } sort(students.begin(), students.end()); } int can(int m, int k[]) { cnt.assign(m, 0); for(int i = 0; i<m; i++) cnt[i] = k[i]; int i = 0, j = 0; while(i<n&&j<m) { if(k[j]>=students[i].fi&&k[j]<=students[i].se) { cnt[j]--; } if(cnt[j]==0) j++; i++; } if(j==m) return 1; return 0; }

Compilation message (stderr)

teams.cpp:2:10: fatal error: boxes.h: No such file or directory
    2 | #include "boxes.h"
      |          ^~~~~~~~~
compilation terminated.