Borderou de evaluare (job #1921632)

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

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:51: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:73: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:73:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:73:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:71: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:72: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:73: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:76:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &fort[i]); ^ user.cpp:80: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
24ms1176kbOK10
312ms1584kbOK10
40ms1000kbOK10
532ms2104kbOK10
664ms3156kbOK10
74ms1132kbOK10
816ms1464kbOK10
944ms2368kbOK10
10120ms4240kbOK10
Punctaj total100

Ceva nu functioneaza?