Problem razlika
User PlayVoltz
Submission Time 2023-09-20 22:18:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

razlika.cpp: In function ‘int main()’:
razlika.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin>>n>>k;
| ^~~
razlika.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
razlika.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector <int> vect(n), razlika(n-1);
| ^~~~~~
razlika.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
razlika.cpp:6:10: error: expected primary-expression before ‘int’
6 | vector <int> vect(n), razlika(n-1);
| ^~~
razlika.cpp:7:2: error: ‘deque’ was not declared in this scope
7 | deque <int> deq;
| ^~~~~
razlika.cpp:1:1: note: ‘std::deque’ is defined in he