Borderou de evaluare (job #2572465)

Utilizator spartanul300Vasile Andrei spartanul300 Data 5 martie 2020 12:54:27
Problema Aria Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:19: error: 'double y1' redeclared as different kind of symbol double arie,x1,x2,y1,y2; ^~ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507, from /usr/include/c++/6/cassert:43, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)' __MATHCALL (y1,, (_Mdouble_)); ^ main.cpp: In function 'int main()': main.cpp:25:27: error: assignment of function 'double y1(double)' x1=v[i].x;y1=v[i].y; ^ main.cpp:25:27: error: cannot convert 'double' to 'double(double) throw ()' in assignment main.cpp:29:24: error: invalid operands of types 'double(double) throw ()' and 'double' to binary 'operator*' arie+=(x1*y2-y1*x2)/2; ~~^~~ Non zero exit status: 1

Ceva nu functioneaza?