Borderou de evaluare (job #1494842)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 1 octombrie 2015 21:55:48
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:14: error: ‘long long int y0’ redeclared as different kind of symbol ll x0 , x1 , y0 , y1 , x , y , r; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:3: /usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp:10:19: error: ‘long long int y1’ redeclared as different kind of symbol ll x0 , x1 , y0 , y1 , x , y , r; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:3: /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:43:28: error: assignment of function ‘double y0(double)’ x0 = 1; x1 = 0; y0 = 0; y1 = 1; ^ user.cpp:43:28: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:43:36: error: assignment of function ‘double y1(double)’ x0 = 1; x1 = 0; y0 = 0; y1 = 1; ^ user.cpp:43:36: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:48:32: error: invalid operands of types ‘long long int’ and ‘double(double)throw ()’ to binary ‘operator*’ y = y0 - (a / b) * y1; y0 = y1; y1 = y; ^ user.cpp:48:39: error: assignment of function ‘double y0(double)’ y = y0 - (a / b) * y1; y0 = y1; y1 = y; ^ user.cpp:48:39: error: cannot convert ‘double(double)throw ()’ to ‘double(double)throw ()’ in assignment user.cpp:48:48: error: assignment of function ‘double y1(double)’ y = y0 - (a / b) * y1; y0 = y1; y1 = y; ^ user.cpp:48:48: error: cannot convert ‘long long int’ to ‘double(double)throw ()’ in assignment user.cpp:28:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.in","r",stdin); ^ user.cpp:29:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.out","w",stdout); ^ user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%lld", &T); T; --T)

Ceva nu functioneaza?