Borderou de evaluare (job #3167214)
Utilizator | Data | 10 noiembrie 2023 13:14:16 | |
---|---|---|---|
Problema | Statistici de ordine | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:6: error: 'vector' was not declared in this scope
7 | pair<vector<int>, vector<int> > partitioning(vector<int> v, int pivot) {
| ^~~~~~
main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <iostream>
+++ |+#include <vector>
2 |
main.cpp:7:16: error: wrong number of template arguments (1, should be 2)
7 | pair<vector<int>, vector<int> > partitioning(vector<int> v, int pivot) {
| ^
In file included from /usr/include/c++/12.2.1/string:47,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_iterator.h:2593:12: note: provided for 'template<class _T1, class _T2> struct std::pair'
2593 | struct pair;
| ^~~~
main.cpp:7:17: error: expected unqualified-id before ',' token
7 | pair<vector<int>, vector<int> > partitioning(vector<int> v, int pivot) {
| ^
main.cpp:7:25: error: expected initializer before '<' token
7 | pair<vector<int>, vector<int> > partitioning(vector<int> v, int pivot) {
| ^
main.cpp:17:17: error: 'vector' was not declared in this scope
17 | int kth_element(vector<int> v, int k) {
| ^~~~~~
main.cpp:17:17: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:17:24: error: expected primary-expression before 'int'
17 | int kth_element(vector<int> v, int k) {
| ^~~
main.cpp:17:32: error: expected primary-expression before 'int'
17 | int kth_element(vector<int> v, int k) {
| ^~~
main.cpp:17:37: error: expression list treated as compound expression in initializer [-fpermissive]
17 | int kth_element(vector<int> v, int k) {
| ^
main.cpp: In function 'int main()':
main.cpp:39:5: error: 'vector' was not declared in this scope
39 | vector<int> v;
| ^~~~~~
main.cpp:39:5: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:39:12: error: expected primary-expression before 'int'
39 | vector<int> v;
| ^~~
main.cpp:44:9: error: 'v' was not declared in this scope
44 | v.push_back(x);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !