Borderou de evaluare (job #2084041)

Utilizator cyg_ieeuVasile Radu-Andrei cyg_ieeu Data 8 decembrie 2017 16:05:09
Problema Patrulatere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:56:11: error: invalid types ‘int[int]’ for array subscript a[i][j] = a[i][j] + 1; ^ user.cpp:56:21: error: invalid types ‘int[int]’ for array subscript a[i][j] = a[i][j] + 1; ^ user.cpp:64:19: error: invalid types ‘int[int]’ for array subscript nr = nr + a[j][k] - a[i][k] - 1; ^ user.cpp:64:29: error: invalid types ‘int[int]’ for array subscript nr = nr + a[j][k] - a[i][k] - 1; ^ user.cpp:66:19: error: invalid types ‘int[int]’ for array subscript nr = nr + a[i][k] - a[i][j] - 1; ^ user.cpp:66:29: error: invalid types ‘int[int]’ for array subscript nr = nr + a[i][k] - a[i][j] - 1; ^ user.cpp:69:15: error: invalid types ‘int[int]’ for array subscript nr += a[i][j] + a[j][k] - a[i][k]; ^ user.cpp:69:25: error: invalid types ‘int[int]’ for array subscript nr += a[i][j] + a[j][k] - a[i][k]; ^ user.cpp:69:35: error: invalid types ‘int[int]’ for array subscript nr += a[i][j] + a[j][k] - a[i][k]; ^ user.cpp:75:19: error: invalid types ‘int[int]’ for array subscript nr = nr + a[i][k] - a[i][j] - a[j][k] - 1; ^ user.cpp:75:29: error: invalid types ‘int[int]’ for array subscript nr = nr + a[i][k] - a[i][j] - a[j][k] - 1; ^ user.cpp:75:39: error: invalid types ‘int[int]’ for array subscript nr = nr + a[i][k] - a[i][j] - a[j][k] - 1; ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<point*, std::vector<point> >; _Tp = point; _Compare = bool (*)(point&, point&)]’: /usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<point*, std::vector<point> >; _Compare = bool (*)(point&, point&)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<point*, std::vector<point> >; _Size = int; _Compare = bool (*)(point&, point&)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<point*, std::vector<point> >; _Compare = bool (*)(point&, point&)]’ user.cpp:49:31: required from here /usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ while (__comp(*__first, __pivot)) ^ /usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘point&’ from expression of type ‘const point’ while (__comp(__pivot, *__last)) ^

Ceva nu functioneaza?