Problem skips
User WangZhenxuan
Submission Time 2025-06-17 00:03:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skips.cpp: In function ‘int main()’:
skips.cpp:21:5: error: ‘cin’ was not declared in this scope
21 | cin >> N >> D;
| ^~~
skips.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <algorithm>
+++ |+#include <iostream>
3 | using namespace std;
skips.cpp:30:5: error: ‘cout’ was not declared in this scope
30 | cout << maxBlock << endl;
| ^~~~
skips.cpp:30:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
skips.cpp:30:25: error: ‘endl’ was not declared in this scope
30 | cout << maxBlock << endl;
| ^~~~
skips.cpp:3:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
2 | #include <algorithm>
+++ |+#include <ostre