Borderou de evaluare (job #1903794)

Utilizator CojocaruDragosCojocaru Dragos Andrei CojocaruDragos Data 5 martie 2017 12:52:34
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:6: error: conflicting declaration ‘char r’ char r; ^ user.cpp:5:24: error: ‘r’ has a previous declaration as ‘int r [100001]’ int x,i,q,n,v[100001], r[100001]; ^ user.cpp: In function ‘int main()’: user.cpp:33:25: error: ‘sx’ was not declared in this scope sx+=v[q]/2; ^ user.cpp:34:25: error: ‘dx’ was not declared in this scope dx+=v[q]/2; ^ user.cpp:38:25: error: ‘sx’ was not declared in this scope sx-=v[q]/2; ^ user.cpp:39:25: error: ‘dx’ was not declared in this scope dx-=v[q]/2; ^ user.cpp:44:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(r=='S') //se introduce pe partea stanga ^ user.cpp:47:25: error: ‘sx’ was not declared in this scope sx=-suma/2; ^ user.cpp:48:25: error: ‘dx’ was not declared in this scope dx=-suma/2+v[i]; ^ user.cpp:53:29: error: ‘dx’ was not declared in this scope dx=suma/2; ^ user.cpp:54:29: error: ‘sx’ was not declared in this scope sx=suma/2-v[q]; ^ user.cpp:60:8: error: ‘sx’ was not declared in this scope if(sx<0) ^ user.cpp:61:12: error: ‘dx’ was not declared in this scope if(dx<0) ^ user.cpp:62:19: error: expected primary-expression before ‘<<’ token out<<sx<< <<"S"<< <<dx<< <<"S"; ^ user.cpp:62:27: error: expected primary-expression before ‘<<’ token out<<sx<< <<"S"<< <<dx<< <<"S"; ^ user.cpp:62:34: error: expected primary-expression before ‘<<’ token out<<sx<< <<"S"<< <<dx<< <<"S"; ^ user.cpp:65:23: error: expected primary-expression before ‘<<’ token

Ceva nu functioneaza?