Borderou de evaluare (job #2537433)
Utilizator | Data | 3 februarie 2020 17:59:48 | |
---|---|---|---|
Problema | A+B | 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:41:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<solutie.size(); i++){
~^~~~~~~~~~~~~~~
main.cpp:42:24: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
nod=solutie[i];
^
main.cpp:43:24: error: request for member 'empty' in 'v[nod]', which is of non-class type 'int'
if(!v[nod].empty()){
^~~~~
main.cpp:44:42: error: invalid types 'int[int]' for array subscript
maxim=max(maxim, v[nod][0]);
^
main.cpp:54:24: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
nod=solutie[0];
^
main.cpp:55:24: error: request for member 'empty' in 'v[nod]', which is of non-class type 'int'
if(!v[nod].empty() || v[nod]!=maxim){
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !