Borderou de evaluare (job #1388329)

Utilizator rexlcdTenea Mihai rexlcd Data 15 martie 2015 13:27:34
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cb(int)’: user.cpp:17:17: error: ‘n’ was not declared in this scope int st=1,dr=n,m,p=0; ^ user.cpp:23:9: error: ‘m’ was not declared in this scope m=(st+dr)/2; ^ user.cpp:25:12: error: ‘v’ was not declared in this scope if(v[m]<=x) ^ user.cpp:29:13: error: ‘p’ was not declared in this scope p=m; ^ user.cpp:39:12: error: ‘p’ was not declared in this scope return p; ^ user.cpp: In function ‘int main()’: user.cpp:59:13: error: ‘j’ was not declared in this scope for(j=i+1;j<=n;j++) ^ user.cpp: In function ‘int cb(int)’: user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?