Borderou de evaluare (job #1729278)
Utilizator | Data | 14 iulie 2016 15:35:37 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘int Trie::length_com_pref(int, int*, int)’:
user.cpp:67:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0;i < vec[mid][s[id][mid] - 'a'].size();++i)
^
user.cpp:59:8: warning: unused variable ‘q’ [-Wunused-variable]
Node *q = t;
^
user.cpp: In function ‘int main()’:
user.cpp:111:41: error: no matching function for call to ‘Trie::length_com_pref(short int&, short int [15], int&)’
out << trie.length_com_pref(t[1], t, e) << '\n';
^
user.cpp:111:41: note: candidate is:
user.cpp:57:5: note: int Trie::length_com_pref(int, int*, int)
int Trie::length_com_pref(int id, int g[], int size)
^
user.cpp:57:5: note: no known conversion for argument 2 from ‘short int [15]’ to ‘int*’
user.cpp:105:10: warning: unused variable ‘f’ [-Wunused-variable]
int e, f;
^
user.cpp:93:6: warning: unused variable ‘op’ [-Wunused-variable]
int op;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !