Borderou de evaluare (job #1883128)

Utilizator MithrilBratu Andrei Mithril Data 17 februarie 2017 19:07:39
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:11: error: ‘MAX’ was not declared in this scope int a[(1<<MAX)]; ^ user.cpp:10:7: error: ‘MAXL’ was not declared in this scope int p[MAXL], b[MAXL]; ^ user.cpp:10:16: error: ‘MAXL’ was not declared in this scope int p[MAXL], b[MAXL]; ^ user.cpp: In function ‘int f(int)’: user.cpp:15:8: error: ‘a’ was not declared in this scope if(a[i]) ^ user.cpp:21:5: error: ‘a’ was not declared in this scope a[i]=INF; ^ user.cpp:24:32: error: ‘p’ was not declared in this scope a[i]=min(a[i], max(f(i&p[j]), f(i&(~p[j]))) + b[j]); ^ user.cpp:24:55: error: ‘b’ was not declared in this scope a[i]=min(a[i], max(f(i&p[j]), f(i&(~p[j]))) + b[j]); ^ user.cpp: In function ‘int main()’: user.cpp:40:13: error: ‘p’ was not declared in this scope p[j]+=((c-'0')<<i); ^ user.cpp:43:28: error: ‘b’ was not declared in this scope for(i=1;i<=l;i++) fin>>b[i]; ^ user.cpp: In function ‘int f(int)’: user.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?