Problem | razlika |
---|---|
User | eliasxyz |
Submission Time | 2025-05-28 21:47:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
razlika.cpp: In function ‘int main()’:
razlika.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin>>N>>Q;
| ^~~
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:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> H[N];
| ^~~~~~
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:7:12: error: expected primary-expression before ‘int’
7 | vector<int> H[N];
| ^~~
razlika.cpp:8:42: error: ‘H’ was not declared in this scope
8 | for (int i=0;i<N;i++){int k; cin>>k; H[i]=k;}
| ^
raz