Borderou de evaluare (job #1523198)

Utilizator OFY4Ahmed Hamza Aydin OFY4 Data 12 noiembrie 2015 14:42:58
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cautbin(int)’: user.cpp:14:12: error: ‘index’ was not declared in this scope if(index>n)continue; ^ user.cpp:15:12: error: ‘v’ was not declared in this scope if(v[index]<=val)start=index; ^ user.cpp:15:14: error: ‘index’ was not declared in this scope if(v[index]<=val)start=index; ^ user.cpp: In function ‘int main()’: user.cpp:26:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d", n, S); ^ user.cpp:26:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:30:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] for(int i=1;i<=n;++i)scanf("%d", v[i]); ^ user.cpp:36:23: error: request for member ‘sum’ in ‘v[ct]’, which is of non-class type ‘int’ v[ct].sum=i+j+x; ^ user.cpp:37:23: error: request for member ‘x’ in ‘v[ct]’, which is of non-class type ‘int’ v[ct].x=i; ^ user.cpp:38:23: error: request for member ‘y’ in ‘v[ct]’, which is of non-class type ‘int’ v[ct].y=j; ^ user.cpp:39:23: error: request for member ‘z’ in ‘v[ct]’, which is of non-class type ‘int’ v[ct].z=x; ^ user.cpp:45:13: error: expected ‘)’ before ‘;’ token sort(v+1;v+ct+1); ^ user.cpp:45:20: error: expected ‘;’ before ‘)’ token sort(v+1;v+ct+1); ^ user.cpp:45:18: warning: statement has no effect [-Wunused-value] sort(v+1;v+ct+1); ^ user.cpp:52:30: error: ‘k’ was not declared in this scope int suma=i+j+k; ^ user.cpp:59:64: error: request for member ‘x’ in ‘v[ct]’, which is of non-class type ‘int’ printf("%d %d %d %d %d %d", i, j, x, v[ct].x, v[ct].y, v[ct].z); ^ user.cpp:59:73: error: request for member ‘y’ in ‘v[ct]’, which is of non-class type ‘int’ printf("%d %d %d %d %d %d", i, j, x, v[ct].x, v[ct].y, v[ct].z); ^ user.cpp:59:82: error: request for member ‘z’ in ‘v[ct]’, which is of non-class type ‘int’ printf("%d %d %d %d %d %d", i, j, x, v[ct].x, v[ct].y, v[ct].z);

Ceva nu functioneaza?