Borderou de evaluare (job #1330508)

Utilizator Andrei1998Andrei Constantinescu Andrei1998 Data 30 ianuarie 2015 18:49:03
Problema DistanceSum Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:23:13: error: ‘long long int y1 [100005]’ redeclared as different kind of symbol lint y1[NMAX]; ^ 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/iostream: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:48:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i]=y1[i-1]+v1[i].y; ^ user.cpp:48:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i]=y1[i-1]+v1[i].y; ^ user.cpp:48:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:48:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i]=y1[i-1]+v1[i].y; ^ user.cpp:48:14: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’ y1[i]=y1[i-1]+v1[i].y; ^ user.cpp:48:14: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment user.cpp:66:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] ans+=((p2-n+p1+1)*y-(sy-y1[p1+1]-y2[p2])); ^ user.cpp:66:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:66:40: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:67:15: error: expected primary-expression before ‘)’ token ans+=(); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h: In instantiation of ‘_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = point*; _Tp = int]’: user.cpp:62:39: required from here /usr/include/c++/4.8/bits/stl_algobase.h:965:18: error: no match for ‘operator<’ (operand types are ‘point’ and ‘const int’) if (*__middle < __val) ^ /usr/include/c++/4.8/bits/stl_algobase.h:965:18: note: candidates are: 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/ostream:38, from /usr/include/c++/4.8/iostream:39,

Ceva nu functioneaza?