Borderou de evaluare (job #2049304)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 27 octombrie 2017 00:31:29
Problema Car Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:26:9: error: ‘int y0’ redeclared as different kind of symbol int x0, y0, x1, y1; ^ 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/cstdio:41, from user.cpp:4: /usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp:26:17: error: ‘int y1’ redeclared as different kind of symbol int x0, y0, x1, y1; ^ 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/cstdio:41, from user.cpp:4: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void ReadInput()’: user.cpp:34:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d%d%d", &N, &M, &x0, &y0, &x1, &y1); ^ user.cpp:34:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘double (*)(double)throw ()’ [-Wformat=] user.cpp:35:13: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] x0--; y0--; x1--; y1--; ^ user.cpp:35:13: error: lvalue required as decrement operand user.cpp:35:25: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] x0--; y0--; x1--; y1--; ^ user.cpp:35:25: error: lvalue required as decrement operand user.cpp: In function ‘void RunDP()’: user.cpp:95:44: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<std::vector<int> >::size_type {aka unsigned int}’ [-fpermissive] answer = std::min(answer, dp[x1][y1][i]); ^ In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:5: /usr/include/c++/4.8/bits/stl_vector.h:770:7: error: initializing argument 1 of ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::reference = std::vector<int>&; std::vector<_Tp, _Alloc>::size_type = unsigned int]’ [-fpermissive] operator[](size_type __n) ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33:0, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/vector:61, from user.cpp:5: /usr/include/c++/4.8/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Trio; _Args = {int&, double (&)(double)throw (), int&, int}; _Tp = Trio]’: /usr/include/c++/4.8/bits/alloc_traits.h:254:4: required from ‘static typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = Trio; _Args = {int&, double (&)(double)throw (), int&, int}; _Alloc = std::allocator<Trio>; typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type = void]’

Ceva nu functioneaza?