Borderou de evaluare (job #1332728)

Utilizator AndreasToadereAndreas Toadere Robert AndreasToadere Data 2 februarie 2015 12:50:38
Problema Poligon6 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:10:12: error: ‘n’ was not declared in this scope fin >> n ; ^ user.cpp:15:30: error: ‘x’ was not declared in this scope if( sqrt((double)x * x - a * a ) == floor(sqrt(double)d * d - a * a )) ^ user.cpp:15:60: error: expected primary-expression before ‘double’ if( sqrt((double)x * x - a * a ) == floor(sqrt(double)d * d - a * a )) ^ user.cpp:19:47: error: lvalue required as left operand of assignment Y[nt] = floor(sqrt((double)d*d=a*a)) ; ^ user.cpp:28:21: warning: unused variable ‘au’ [-Wunused-variable] int au = Y[i] ; Y[i] = Y[j] ; Y[j] = aux ; ^ user.cpp:30:9: error: redeclaration of ‘int k’ int k = 1 , c = 1 , j = 0 ; ^ user.cpp:9:46: error: ‘int k’ previously declared here int nt , X[1001] , Y[1001] , a , d , j , k , aux , c ; ^ user.cpp:30:17: error: redeclaration of ‘int c’ int k = 1 , c = 1 , j = 0 ; ^ user.cpp:9:56: error: ‘int c’ previously declared here int nt , X[1001] , Y[1001] , a , d , j , k , aux , c ; ^ user.cpp:30:25: error: redeclaration of ‘int j’ int k = 1 , c = 1 , j = 0 ; ^ user.cpp:9:42: error: ‘int j’ previously declared here int nt , X[1001] , Y[1001] , a , d , j , k , aux , c ; ^ user.cpp:36:13: error: ‘Z’ was not declared in this scope Z[j] = c ; ^ user.cpp:40:5: error: ‘Z’ was not declared in this scope Z[k] = c ; ^ user.cpp:9:34: warning: unused variable ‘a’ [-Wunused-variable] int nt , X[1001] , Y[1001] , a , d , j , k , aux , c ; ^ user.cpp:9:50: warning: unused variable ‘aux’ [-Wunused-variable] int nt , X[1001] , Y[1001] , a , d , j , k , aux , c ; ^

Ceva nu functioneaza?