Problem devour
User 2Princes1Lance
Submission Time 2023-11-27 15:54:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

devour.cpp:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
1 | #inculde <bits/stdc++.h>
| ^~~~~~~
| include
devour.cpp: In function ‘int main()’:
devour.cpp:5:10: error: ‘vector’ is not a member of ‘std’
5 | std::vector<int> monsters;
| ^~~~~~
devour.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | #inculde <bits/stdc++.h>
devour.cpp:5:17: error: expected primary-expression before ‘int’
5 | std::vector<int> monsters;
| ^~~
devour.cpp:6:10: error: ‘cin’ is not a member of ‘std’
6 | std::cin >> N >> K;
| ^~~
devour.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incu