Borderou de evaluare (job #3333143)
| Utilizator | Data | 11 ianuarie 2026 13:29:16 | |
|---|---|---|---|
| Problema | Parantezare optima de matrici | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void merge(std::vector<edge>&, std::vector<edge>&)':
main.cpp:69:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | while (i <= a.size() && j <= b.size())
| ~~^~~~~~~~~~~
main.cpp:69:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | while (i <= a.size() && j <= b.size())
| ~~^~~~~~~~~~~
main.cpp:71:17: error: could not convert '(& a)->std::vector<edge>::operator[](((std::vector<edge>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<edge>, edge>::value_type' {aka 'edge'} to 'bool'
71 | if (a[i])
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<edge>, edge>::value_type {aka edge}
main.cpp:72:5: error: expected primary-expression before '}' token
72 | }
| ^
main.cpp:66:23: warning: unused variable 'n' [-Wunused-variable]
66 | int i = 0, j = 0, n = 0;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
