Borderou de evaluare (job #1608227)

Utilizator mihaisavastreMihai Savastre mihaisavastre Data 21 februarie 2016 22:02:54
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:14: error: ‘short int abs [176]’ redeclared as different kind of symbol short abs[176]; ^ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/stdlib.h:771:12: error: previous declaration of ‘int abs(int)’ extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ user.cpp: In function ‘void checkNeighbours(short int, short int)’: user.cpp:25:16: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript abs[lim]=x+1; ^ user.cpp:31:16: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript abs[lim]=x-1; ^ user.cpp:38:16: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript abs[lim]=x; ^ user.cpp:44:16: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript abs[lim]=x; ^ user.cpp: In function ‘void Lee()’: user.cpp:55:18: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript if (abs[k]==iesireX and ord[k]==iesireY){ ^ user.cpp:58:30: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript checkNeighbours(abs[k],ord[k]); ^ user.cpp: In function ‘int main()’: user.cpp:81:10: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript abs[k]=intrareX; ^ user.cpp:85:21: error: invalid types ‘<unresolved overloaded function type>[short int]’ for array subscript g<<vizitat[abs[k]][ord[k]]; ^

Ceva nu functioneaza?