Borderou de evaluare (job #1975695)

Utilizator alex273Groza Alexandru alex273 Data 1 mai 2017 17:38:13
Problema Reteta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:9: error: expected constructor, destructor, or type conversion before ‘(’ token freopen("reteta.in","r",stdin); freopen("reteta.out","w",stdout); ^ user.cpp:3:41: error: expected constructor, destructor, or type conversion before ‘(’ token freopen("reteta.in","r",stdin); freopen("reteta.out","w",stdout); ^ user.cpp: In function ‘void citire()’: user.cpp:8:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:10:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a[i][1],&a [i][2]); ^ user.cpp:11:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int j=3;j<=a [i][2]+2;++j) scanf("%d",&a[i][j]);} ^ user.cpp:12:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int e=1;e<=n;++e) scanf("%d",&pret[e]); ^

Ceva nu functioneaza?