Borderou de evaluare (job #1243649)

Utilizator sebinechitasebi nechita sebinechita Data 16 octombrie 2014 09:48:08
Problema Cele mai apropiate puncte din plan Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int rez(int, int)’: user.cpp:10:18: warning: overflow in implicit constant conversion [-Woverflow] #define INF 1LL<<62 ^ user.cpp:21:16: note: in expansion of macro ‘INF’ return INF; ^ user.cpp:27:5: error: ‘val’ was not declared in this scope val=a[mid].second; ^ user.cpp:28:5: error: ‘di’ was not declared in this scope di=min(rez(st, mid), rez(mid+1, dr)); ^ user.cpp:29:43: error: ‘b’ was not declared in this scope merge(a+st, a+mid+1, a+mid+1, a+dr+1, b); ^ user.cpp:30:9: error: ‘i’ was not declared in this scope for(i=0;i<dr-st+1;i++) ^ user.cpp:34:13: error: ‘c’ was not declared in this scope c[++v]=b[i]; ^ user.cpp:34:17: error: ‘v’ was not declared in this scope c[++v]=b[i]; ^ user.cpp:37:9: error: ‘i’ was not declared in this scope for(i=1;i<=v;i++) ^ user.cpp:37:16: error: ‘v’ was not declared in this scope for(i=1;i<=v;i++) ^ user.cpp:39:13: error: ‘j’ was not declared in this scope for(j=1;j<=7 && c[i].first-c[i+j-1].first<=d;j++) ^ user.cpp:39:25: error: ‘c’ was not declared in this scope for(j=1;j<=7 && c[i].first-c[i+j-1].first<=d;j++) ^ user.cpp: In function ‘int main()’: user.cpp:61:31: error: too many arguments to function ‘int rez(int, int)’ cout<<sqrt(1.0*rez(1, n, a)); ^ user.cpp:18:5: note: declared here int rez(int st, int dr) ^ user.cpp: In function ‘int rez(int, int)’: user.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?