Problem | catfight |
---|---|
User | Schoolpurposes |
Submission Time | 2025-03-10 16:43:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catfight.cpp:4:23: error: ‘vector’ was not declared in this scope
4 | int32_t longestsubvec(vector<int> arr, int limit)
| ^~~~~~
catfight.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;
catfight.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
catfight.cpp:4:30: note: in expansion of macro ‘int’
4 | int32_t longestsubvec(vector<int> arr, int limit)
| ^~~
catfight.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
catfight.cpp:4:40: note: in expansion of macro ‘int’
4 | int32_t longestsubvec(vector<int> arr, int limit)
|