Problem | snakesnack |
---|---|
User | ChickenCoder |
Submission Time | 2023-07-05 01:29:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snakesnack.cpp: In function ‘int main()’:
snakesnack.cpp:33:2: error: ‘memset’ was not declared in this scope
33 | memset(dp, -1, sizeof(dp));
| ^~~~~~
snakesnack.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include <iostream>
+++ |+#include <cstring>
2 | using namespace std;
snakesnack.cpp:37:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
37 | sort(arr, arr+2*n);
| ^~~~
| qsort
snakesnack.cpp:49:2: error: ‘vector’ was not declared in this scope
49 | vector<int> f, s;
| ^~~~~~
snakesnack.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
snakesnack.cpp:49:9: error: expected primary-expression before ‘int’
49 |