Borderou de evaluare (job #2919501)

Utilizator OvidRata Ovidiu Ovid Data 17 august 2022 20:27:23
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:9: error: 'long long int y1' redeclared as different kind of entity 19 | int x1, y1, x, y; | ^~ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:522, from /usr/include/c++/10/cassert:43, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33, 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 'void euclidExtins(long long int, long long int, long long int)': main.cpp:28:13: error: assignment of function 'double y1(double)' 28 | x1=x; y1=y; | ~~^~ main.cpp:29:7: error: invalid conversion from 'double (*)(double) throw ()' {aka 'double (*)(double)'} to 'long long int' [-fpermissive] 29 | x=y1; | ^~ | | | double (*)(double) throw () {aka double (*)(double)} main.cpp:30:12: error: invalid operands of types 'double(double) throw ()' {aka 'double(double)'} and 'long long int' to binary 'operator*' 30 | y=x1-y1*(a/b); | ~~^~~~~~ | | | | | long long int | double(double) throw () {aka double(double)} Non zero exit status: 1

Ceva nu functioneaza?