Borderou de evaluare (job #996331)

Utilizator rares96cheseliRares Cheseli rares96cheseli Data 11 septembrie 2013 17:23:40
Problema Orase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:15: error: expected initializer before ‘bestsum’ int n, m, sum bestsum, j=1; ^ user.cpp: In function ‘int main()’: user.cpp:20:9: error: ‘sum’ was not declared in this scope sum=a[i].l+a[i].d+a[j].l-a[j].d; ^ user.cpp:20:29: error: ‘j’ was not declared in this scope sum=a[i].l+a[i].d+a[j].l-a[j].d; ^ user.cpp:21:16: error: ‘bestsum’ was not declared in this scope if(sum>bestsum) bestsum=sum; ^ user.cpp:24:8: error: ‘bestsum’ was not declared in this scope g<<bestsum<<'\n'; ^

Ceva nu functioneaza?