Borderou de evaluare (job #1386277)

Utilizator laurageorgescuLaura Georgescu laurageorgescu Data 12 martie 2015 20:55:37
Problema Dreptunghiuri3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:38: error: ‘int y1 [1001]’ redeclared as different kind of symbol int x1[ kmax ], x2[ kmax ], y1[ kmax ], y2[ kmax ], k[ kmax ]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:43:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] fin >> x1[ i ] >> y1[ i ] >> x2[ i ] >> y2[ i ] >> k[ i ]; ^ user.cpp:43:13: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ fin >> x1[ i ] >> y1[ i ] >> x2[ i ] >> y2[ i ] >> k[ i ]; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:45:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] ay.push_back( y1[ i ] ); ay.push_back( y2[ i ] ); ^ user.cpp:45:29: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::value_type {aka int}’ [-fpermissive] In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:919:7: error: initializing argument 1 of ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ [-fpermissive] push_back(value_type&& __x) ^ user.cpp:50:29: error: cannot convert ‘double (*)(double)throw ()’ to ‘int*’ for argument ‘1’ to ‘void normalizare(int*, int*, std::vector<int>&)’ normalizare( y1, y2, ay ); ^ user.cpp:53:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[ x1[ i ] ][ y1[ i ] ] += k[ i ]; ^ user.cpp:53:31: error: invalid types ‘int [2003][double(double)throw ()]’ for array subscript v[ x1[ i ] ][ y1[ i ] ] += k[ i ]; ^ user.cpp:55:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[ x2[ i ] + 1 ][ y1[ i ] ] -= k[ i ]; ^ user.cpp:55:35: error: invalid types ‘int [2003][double(double)throw ()]’ for array subscript v[ x2[ i ] + 1 ][ y1[ i ] ] -= k[ i ]; ^

Ceva nu functioneaza?