Borderou de evaluare (job #1817474)
Utilizator | Data | 27 noiembrie 2016 21:21:23 | |
---|---|---|---|
Problema | Secventa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:42:58: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::vector<int>’
out << i << " " << i + K << " " << secventa(9, 3, array);
^
user.cpp:9:5: error: in passing argument 3 of ‘int secventa(int, int, int&, std::vector<int>)’
int secventa(int N, int K, int& pos, vector<int> array) {
^
user.cpp:34:13: warning: unused variable ‘pos’ [-Wunused-variable]
int N, K, pos;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !