Problem | inspections |
---|---|
User | Sandarach151 |
Submission Time | 2025-03-21 19:22:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
inspections.cpp: In function ‘int main()’:
inspections.cpp:9:2: error: ‘vector’ was not declared in this scope
9 | vector<int> arr(n, -1);
| ^~~~~~
inspections.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;
inspections.cpp:9:9: error: expected primary-expression before ‘int’
9 | vector<int> arr(n, -1);
| ^~~
inspections.cpp:10:9: error: expected primary-expression before ‘int’
10 | vector<int> safs;
| ^~~
inspections.cpp:18:7: error: ‘arr’ was not declared in this scope
18 | if(arr[j]!=-1){
| ^~~
inspections.cpp:19:5: error: ‘safs’ was not declared in this scope
19 | safs.push_back(cnt-arr[j]);
| ^~~~
inspections.cpp:21:4: error: ‘arr’ was not declared in this scope