Borderou de evaluare (job #2643143)

Utilizator bem.andreiIceman bem.andrei Data 18 august 2020 21:45:05
Problema Xmoto Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:60: error: conflicting declaration 'double a' double a[10005], b[10005], c[10005], d[10005], rez[10005], a, b; ^ main.cpp:7:8: note: previous declaration as 'double a [10005]' double a[10005], b[10005], c[10005], d[10005], rez[10005], a, b; ^ main.cpp:7:63: error: conflicting declaration 'double b' double a[10005], b[10005], c[10005], d[10005], rez[10005], a, b; ^ main.cpp:7:18: note: previous declaration as 'double b [10005]' double a[10005], b[10005], c[10005], d[10005], rez[10005], a, b; ^ main.cpp: In function 'int main()': main.cpp:10:5: error: 'r' was not declared in this scope r>>n>>l; ^ main.cpp:20:12: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator+' a+=x1; ^~ main.cpp:20:12: error: in evaluation of 'operator+=(double [10005], double)' main.cpp:21:12: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator+' b+=x3; ^~ main.cpp:21:12: error: in evaluation of 'operator+=(double [10005], double)' main.cpp:25:20: error: invalid operands of types 'int' and 'double [10005]' to binary 'operator-' double x=(l-b)/a; ~^~ main.cpp:28:15: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator-' a-=a[i]; ^ main.cpp:28:15: error: in evaluation of 'operator-=(double [10005], double)' main.cpp:29:15: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator-' b-=b[i]; ^ main.cpp:29:15: error: in evaluation of 'operator-=(double [10005], double)' main.cpp:30:15: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator+' a+=c[i]; ^ main.cpp:30:15: error: in evaluation of 'operator+=(double [10005], double)' main.cpp:31:15: error: invalid operands of types 'double [10005]' and 'double' to binary 'operator+' b+=d[i]; ^ main.cpp:31:15: error: in evaluation of 'operator+=(double [10005], double)' main.cpp:33:5: error: 'w' was not declared in this scope w<<nrs<<"\n"; ^ Non zero exit status: 1

Ceva nu functioneaza?