Borderou de evaluare (job #3272917)
Utilizator | Data | 31 ianuarie 2025 16:01:39 | |
---|---|---|---|
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 'int main()':
main.cpp:48:11: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int')
48 | gt[i]=g[i];
| ^
main.cpp:52:13: error: 'class std::queue<gagica>' has no member named 'begin'
52 | sort(gt.begin(), gt.end(), cmpTimp);
| ^~~~~
main.cpp:52:25: error: 'class std::queue<gagica>' has no member named 'end'
52 | sort(gt.begin(), gt.end(), cmpTimp);
| ^~~
main.cpp:59:25: error: no match for 'operator[]' (operand types are 'std::queue<gagica>' and 'int')
59 | drum-=vizite[i].timp;
| ^
main.cpp:64:27: error: '__gnu_cxx::__alloc_traits<std::allocator<gagica>, gagica>::value_type' {aka 'struct gagica'} has no member named 'frumi'; did you mean 'frum'?
64 | if(gt.front().frumi<gf[i].frumi){///daca nu e destul de frumi o tai
| ^~~~~
| frum
main.cpp:64:39: error: '__gnu_cxx::__alloc_traits<std::allocator<gagica>, gagica>::value_type' {aka 'struct gagica'} has no member named 'frumi'; did you mean 'frum'?
64 | if(gt.front().frumi<gf[i].frumi){///daca nu e destul de frumi o tai
| ^~~~~
| frum
main.cpp:67: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 '()' ?)
67 | else if(gt.front.timp()+drum<=T){///daca intra ca si timp
| ~~~^~~~~
| ()
main.cpp:67:30: error: expected ')' before 'timp'
67 | else if(gt.front.timp()+drum<=T){///daca intra ca si timp
| ~ ^~~~
| )
main.cpp:68: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 '()' ?)
68 | drum+=gt.front.timp();//adaug t la drum
| ~~~^~~~~
| ()
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !