Borderou de evaluare (job #2807268)
Utilizator | Data | 23 noiembrie 2021 16:54:39 | |
---|---|---|---|
Problema | Map | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<int> z_function(std::string)':
main.cpp:26:25: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
26 | while (i + z[i] < n & s[z[i]] == s[i + z[i]])
| ~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:42:26: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} in assignment
42 | z[i] = z_function(harta[i]);
| ~~~~~~~~~~^~~~~~~~~~
| |
| std::vector<int>
main.cpp:50:20: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
50 | if(z[j][m - i] != i && i + z[j][m-i] != m)
| ^
main.cpp:50:44: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
50 | if(z[j][m - i] != i && i + z[j][m-i] != m)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !