Submission #597418

#TimeUsernameProblemLanguageResultExecution timeMemory
597418AryamanRtunjayJob Scheduling (CEOI12_jobs)C++17
Compilation error
0 ms0 KiB
#include <stdio.h>
#include <stdlin.h>
#define maxN 100001

using namespace std

struct Cell {
    int id; Cell* next;
};
Cell* Req[maxN];
int Cn[maxN], m, n, d;

bool Test(int k)
{
    int dd = 1, r = 0;
    for(int x = 1; x<=n; x++)
    {
        if(Cn[x] == 0) continue;
        if(dd<x-d) {dd=x-d; r=0;}
        dd+=(Cn[x] + r)/k;
        r = (Cn[x]+r%k);
        if(dd>x+1 || dd == x+1 && r>0) return false;
    }
    return true;
}

Compilation message (stderr)

jobs.cpp:2:10: fatal error: stdlin.h: No such file or directory
    2 | #include <stdlin.h>
      |          ^~~~~~~~~~
compilation terminated.