Borderou de evaluare (job #1921557)

Utilizator zdavid112zIon David-Gabriel zdavid112z Data 10 martie 2017 13:12:23
Problema Catun Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In constructor ‘Drum::Drum(int, long long int, int)’: user.cpp:12:15: warning: ‘Drum::cost’ will be initialized after [-Wreorder] long long cost; ^ user.cpp:11:14: warning: ‘int Drum::fort’ [-Wreorder] int nod, fort; ^ user.cpp:15:5: warning: when initialized here [-Wreorder] Drum(int n, long long c, int f) : ^ user.cpp: In function ‘void dijkstra()’: user.cpp:50:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < g[d.nod].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:70:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d", &n, &m, &nrf); ^ user.cpp:70:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:70:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:68:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("catun.in", "r", stdin); ^ user.cpp:69:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("catun.out", "w", stdout); ^ user.cpp:70:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &m, &nrf); ^ user.cpp:73:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &fort[i]); ^ user.cpp:77:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%lld", &a, &b, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1008kbOK10
24ms1172kbIncorect0
312ms1584kbOK10
40ms992kbOK10
532ms2112kbIncorect0
660ms3156kbIncorect0
74ms1120kbOK10
812ms1456kbOK10
944ms2364kbIncorect0
10112ms4240kbIncorect0
Punctaj total50

Ceva nu functioneaza?