Submission #681793

#TimeUsernameProblemLanguageResultExecution timeMemory
681793kthngUntitled (POI11_tem)C11
Compilation error
0 ms0 KiB
#include<iostream> #include<deque> using namespace std; int a[1000000][2], n; deque<int> dq; int main() { scanf("%d", &n); int ret = 1; for (int i = 0; i < n; i++) scanf("%d%d", &a[i][0], &a[i][1]); for (int i = 0; i < n; i++) { if (i && a[i - 1][0] > a[i][1]) dq.clear(); if (!dq.empty() && a[i][1] < a[dq.front()][0]) dq.pop_front(); if (!dq.empty()) ret = max(ret, i - dq.front() + 1); if (!dq.empty() && a[i][0] < a[dq.back()][0]) dq.pop_back(); dq.push_back(i); } printf("%d\n", ret); return 0; }

Compilation message (stderr)

tem.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.