Borderou de evaluare (job #1500975)

Utilizator cristina_borzaCristina Borza cristina_borza Data 12 octombrie 2015 22:15:57
Problema Mvc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d" , &cost[i]); ^ user.cpp:46:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0 ; j < v[x].size() ; ++j) { ^ user.cpp: In function ‘void solve(int)’: user.cpp:83:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < v[nod].size() ; ++i) { ^ user.cpp: In function ‘int main()’: user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mvc.in" , "r" , stdin); ^ user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mvc.out" , "w" , stdout); ^ user.cpp:24:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &n); ^ user.cpp:29:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &cost[i]); ^ user.cpp:33:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d" , &x , &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1472kbOK10
20ms1464kbOK10
30ms1472kbOK10
44ms1532kbOK10
512ms1732kbOK10
628ms2140kbOK10
7112ms3764kbOK10
8268ms6212kbOK10
9284ms7268kbOK10
10224ms4628kbOK10
Punctaj total100

Ceva nu functioneaza?