Borderou de evaluare (job #1476003)

Utilizator lflorin29Florin Laiu lflorin29 Data 24 august 2015 14:11:21
Problema Cu calu' la JBOI Status done
Runda Junior Challenge 2015 Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:9: error: ‘int y1 [8]’ redeclared as different kind of symbol int y1[8] = { 1, 2, 2, 1, -1, -2, -2, -1 }; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, 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:34:80: warning: pointer to a function used in arithmetic [-Wpointer-arith] pair <int, int> now = {start.first + x1[k], start.second + y1[k]}; ^ user.cpp:34:80: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:34:74: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘const int&’ [-fpermissive] pair <int, int> now = {start.first + x1[k], start.second + y1[k]}; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:112:26: error: initializing argument 2 of ‘constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = int; _T2 = int]’ [-fpermissive] _GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b) ^

Ceva nu functioneaza?