Borderou de evaluare (job #2132088)

Utilizator mateibanuBanu Matei Costin mateibanu Data 15 februarie 2018 13:51:01
Problema Karb2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void df(int)’: user.cpp:10:12: error: ‘v’ was not declared in this scope int nr=v[nod].size(),i,frunza=1,prod=1,prod2=0; ^ user.cpp:12:10: error: ‘i’ was not declared in this scope for (i=0;i<nr;i++){ ^ user.cpp:13:9: error: ‘fiu’ was not declared in this scope fiu=v[nod][i]; ^ user.cpp:16:13: error: ‘prod2’ was not declared in this scope prod2=prod*d[fiu][0]+prod2; ^ user.cpp:16:19: error: ‘prod’ was not declared in this scope prod2=prod*d[fiu][0]+prod2; ^ user.cpp:18:13: error: ‘frunza’ was not declared in this scope frunza=0; ^ user.cpp:21:9: error: ‘frunza’ was not declared in this scope if (frunza){ ^ user.cpp:27:11: error: ‘fiu’ was not declared in this scope d[fiu][0]=prod; ^ user.cpp:27:19: error: ‘prod’ was not declared in this scope d[fiu][0]=prod; ^ user.cpp: In function ‘int main()’: user.cpp:46:9: error: ‘v’ was not declared in this scope v[x].push_back(y); ^ user.cpp:33:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karb2.in","r",stdin); ^ user.cpp:34:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karb2.out","w",stdout); ^ user.cpp:38:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^ user.cpp:41:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:45:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^

Ceva nu functioneaza?