Borderou de evaluare (job #1388323)

Utilizator rexlcdTenea Mihai rexlcd Data 15 martie 2015 13:26:19
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:49:8: error: ‘n’ was not declared in this scope f>>n; ^ user.cpp:50:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:52:12: error: ‘v’ was not declared in this scope f>>v[i]; ^ user.cpp:53:10: error: ‘v’ was not declared in this scope sort(v+1,v+n+1); ^ user.cpp:55:9: error: ‘i’ was not declared in this scope for(i=1;i<=n-1;i++) ^ user.cpp:56:13: error: ‘j’ was not declared in this scope for(j=i+1;j<=n;j++) ^ user.cpp:58:13: error: ‘val’ was not declared in this scope val=cb(v[i]+v[j]); ^ user.cpp:59:13: error: ‘fin’ was not declared in this scope fin+=val-j; ^ user.cpp:62:8: error: ‘val’ was not declared in this scope g<<val<<'\n'; ^ user.cpp: In function ‘int cb(int)’: user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?