Borderou de evaluare (job #3134590)

Utilizator indibotocIndi Botoc indibotoc Data 29 mai 2023 19:05:25
Problema Invers modular Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:19: error: 'int y0' redeclared as different kind of entity 8 | int a,n,x, y, x0, y0, c; | ^~ In file included from /usr/include/features.h:490, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655, from /usr/include/c++/12.2.1/cassert:43, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33, from main.cpp:1: /usr/include/bits/mathcalls.h:223:1: note: previous declaration 'double y0(double)' 223 | __MATHCALL (y0,, (_Mdouble_)); | ^~~~~~~~~~ main.cpp: In function 'void euclid(int, int, int&, int&)': main.cpp:19:21: error: invalid conversion from 'double (*)(double) noexcept' to 'int' [-fpermissive] 19 | euclid(b,a%b,x0,y0); | ^~ | | | double (*)(double) noexcept main.cpp:10:41: note: initializing argument 4 of 'void euclid(int, int, int&, int&)' 10 | void euclid( int a, int b, int &x, int &y ) | ~~~~~^ main.cpp:19:21: error: cannot bind rvalue '(int)y0' to 'int&' 19 | euclid(b,a%b,x0,y0); | ^~ main.cpp:20:7: error: invalid conversion from 'double (*)(double) noexcept' to 'int' [-fpermissive] 20 | x=y0; | ^~ | | | double (*)(double) noexcept main.cpp:21:11: error: invalid operands of types 'int' and 'double(double) noexcept' to binary 'operator*' 21 | y=x0-c*y0; | ~^~~ | | | | | double(double) noexcept | int main.cpp: In function 'int main()': main.cpp:32:9: error: no match for 'operator<<' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 32 | fout<<y; | ~~~~^~~ | | | | | int | std::ifstream {aka std::basic_ifstream<char>} main.cpp:32:9: note: candidate: 'operator<<(int, int)' (built-in) 32 | fout<<y; | ~~~~^~~ main.cpp:32:9: note: no known conversion for argument 1 from 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'int' In file included from /usr/include/c++/12.2.1/regex:66, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:110: /usr/include/c++/12.2.1/bits/regex.h:1679:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1679 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, Non zero exit status: 1

Ceva nu functioneaza?