Borderou de evaluare (job #2172376)

Utilizator mihai2003LLL LLL mihai2003 Data 15 martie 2018 16:14:01
Problema Reteta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:84:14: warning: unused variable ‘x’ [-Wunused-variable] int r,x,tip; ^ user.cpp:70:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta.in","r",stdin); ^ user.cpp:71:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta.out","w",stdout); ^ user.cpp:72:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&m,&n); ^ user.cpp:75:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&r); ^ user.cpp:76:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int j=1;j<=r;j++)scanf("%d",&x); ^ user.cpp:79:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&cm[i]); ^ user.cpp:81:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta.in","r",stdin); ^ user.cpp:82:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&m,&n); ^ user.cpp:85:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&tip,&r); ^ user.cpp:88:61: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&mat[i][j]),cost[i]+=(float)cm[mat[i][j]]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2888kbOK10
24ms2672kbOK10
34ms2912kbOK10
44ms3004kbOK10
54ms2812kbOK10
64ms2820kbOK10
78ms2812kbOK10
88ms2964kbOK10
98ms2884kbOK10
108ms2672kbOK10
Punctaj total100

Ceva nu functioneaza?