Borderou de evaluare (job #2842249)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 31 ianuarie 2022 14:07:56
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:9: error: 'int y1' redeclared as different kind of entity 7 | int x1, y1, r1; | ^~ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration 'double y1(double)' 221 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:18:27: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'double (*)(double) throw ()' {aka 'double (*)(double)'} [-Wformat=] 18 | fscanf( fin, "%d %d %d", &x1, &y1, &r1 ); | ~^ ~~~ | | | | int* double (*)(double) throw () {aka double (*)(double)} main.cpp:20:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 20 | if( x1 == x2 && y1 == y2 && r1 == r2 ) // sunt egale | ~~~^~~~~ main.cpp:23:61: error: invalid operands of types 'int' and 'double(double) throw ()' {aka 'double(double)'} to binary 'operator-' 23 | double d = sqrt( Patrat( x2 - x1 ) + Patrat( y2 - y1 ) ); // distanta minima dintre ele :)) | ~~ ^ ~~ | | | | int double(double) throw () {aka double(double)} main.cpp:4:24: note: in definition of macro 'Patrat' 4 | #define Patrat( x ) ( (x) * (x) ) // x^2 | ^ main.cpp:23:61: error: invalid operands of types 'int' and 'double(double) throw ()' {aka 'double(double)'} to binary 'operator-' 23 | double d = sqrt( Patrat( x2 - x1 ) + Patrat( y2 - y1 ) ); // distanta minima dintre ele :)) | ~~ ^ ~~ | | | | int double(double) throw () {aka double(double)} main.cpp:4:30: note: in definition of macro 'Patrat' 4 | #define Patrat( x ) ( (x) * (x) ) // x^2 | ^ Non zero exit status: 1

Ceva nu functioneaza?