Borderou de evaluare (job #1425665)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 27 aprilie 2015 21:06:39
Problema Order Status done
Runda pregatire-lot-aib Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:13:21: error: ‘n’ was not declared in this scope for(i = x; i <= n; i+=ub(i)) aib[i] += nr; ^ user.cpp: In function ‘int cautbin(int)’: user.cpp:23:14: error: ‘n’ was not declared in this scope int dr = n ,st = 1, mij = 0, sum = 0, Min = 999999999; ^ user.cpp:24:11: error: ‘st’ was not declared in this scope while(st <= dr) ^ user.cpp:26:9: error: ‘mij’ was not declared in this scope mij = (st + dr) / 2; ^ user.cpp:28:37: error: ‘Min’ was not declared in this scope if( suma(mij) == x && mij < Min) Min = mij; ^ user.cpp:32:12: error: ‘Min’ was not declared in this scope return Min; ^ user.cpp: In function ‘int main()’: user.cpp:43:17: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:46:5: error: ‘ctr’ was not declared in this scope ctr = 2; ^ user.cpp: In function ‘int cautbin(int)’: user.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:41:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("order.in","r",stdin); ^ user.cpp:42:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("order.out","w",stdout); ^

Ceva nu functioneaza?