Borderou de evaluare (job #3273521)

Utilizator deliaandreeaddelia andreea deliaandreead Data 2 februarie 2025 15:38:36
Problema Dl. Boss Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool exista(int)': main.cpp:34:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::queue<gagica>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | return poz<v.size() && poz>0 && v[poz/2].frum>v[poz].frum; | ~~~^~~~~~~~~ main.cpp:34:38: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 34 | return poz<v.size() && poz>0 && v[poz/2].frum>v[poz].frum; | ^ main.cpp:34:52: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 34 | return poz<v.size() && poz>0 && v[poz/2].frum>v[poz].frum; | ^ main.cpp: In function 'int main()': main.cpp:56:11: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 56 | gt[i]=g[i]; | ^ main.cpp:60:13: error: 'class std::queue<gagica>' has no member named 'begin' 60 | sort(gt.begin(), gt.end(), cmpTimp); | ^~~~~ main.cpp:60:25: error: 'class std::queue<gagica>' has no member named 'end' 60 | sort(gt.begin(), gt.end(), cmpTimp); | ^~~ main.cpp:67:20: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 67 | drum-=v[i].timp; | ^ main.cpp:72:27: error: '__gnu_cxx::__alloc_traits<std::allocator<gagica>, gagica>::value_type' {aka 'struct gagica'} has no member named 'frumi'; did you mean 'frum'? 72 | if(gt.front().frumi<gf[i].frumi){///daca nu e destul de frumi o tai | ^~~~~ | frum main.cpp:72:39: error: '__gnu_cxx::__alloc_traits<std::allocator<gagica>, gagica>::value_type' {aka 'struct gagica'} has no member named 'frumi'; did you mean 'frum'? 72 | if(gt.front().frumi<gf[i].frumi){///daca nu e destul de frumi o tai | ^~~~~ | frum main.cpp:75:24: error: invalid use of member function 'std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = gagica; _Sequence = std::deque<gagica, std::allocator<gagica> >; const_reference = const gagica&]' (did you forget the '()' ?) 75 | else if(gt.front.timp()+drum<=T){///daca intra ca si timp | ~~~^~~~~ | () main.cpp:75:30: error: expected ')' before 'timp' 75 | else if(gt.front.timp()+drum<=T){///daca intra ca si timp | ~ ^~~~ | ) main.cpp:76:26: error: invalid use of member function 'std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = gagica; _Sequence = std::deque<gagica, std::allocator<gagica> >; const_reference = const gagica&]' (did you forget the '()' ?) 76 | drum+=gt.front.timp();//adaug t la drum | ~~~^~~~~ | () main.cpp:80:34: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 80 | while( poz>1 && v[poz/2].frum>v[poz].frum ){//verif cu tatal | ^ main.cpp:80:48: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') 80 | while( poz>1 && v[poz/2].frum>v[poz].frum ){//verif cu tatal | ^ main.cpp:81:27: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int') Non zero exit status: 1

Ceva nu functioneaza?