Borderou de evaluare (job #1891303)

Utilizator eusebiu_gageaGagea Eusebiu-Andrei eusebiu_gagea Data 23 februarie 2017 21:38:45
Problema Dragoni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 2

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:48:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0; j<v[nod].size(); j++) ^ user.cpp:63:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", cost[n]); ^ user.cpp:38:10: warning: unused variable ‘i’ [-Wunused-variable] long i, j, nod, poz; ^ user.cpp: In function ‘void afis(std::queue<long int>)’: user.cpp:80:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ", coada.front()); ^ user.cpp: In function ‘void request()’: user.cpp:95:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < v[nod].size(); i++) { ^ user.cpp:105:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", maxi); ^ user.cpp: In function ‘int main()’: user.cpp:112:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d %d", &cerinta, &n, &m); ^ user.cpp:112:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:112:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:113:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for(i=1; i<=n; i++) scanf("%d", &dragon[i]); ^ user.cpp:116:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c); ^ user.cpp:116:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:116:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:110:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.in", "r", stdin); ^ user.cpp:111:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.out", "w", stdout); ^ user.cpp:112:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &cerinta, &n, &m); ^ user.cpp:113:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1; i<=n; i++) scanf("%d", &dragon[i]); ^ user.cpp:116:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbRaspuns gresit!0
20ms308kbRaspuns gresit!0
30ms312kbRaspuns gresit!0
40ms312kbCorect!2
50ms324kbRaspuns gresit!0
60ms340kbRaspuns gresit!0
74ms460kbRaspuns gresit!0
84ms492kbRaspuns gresit!0
94ms532kbRaspuns gresit!0
104ms528kbRaspuns gresit!0
110ms276kbFisier de iesire incomplet!0
120ms288kbFisier de iesire incomplet!0
130ms288kbFisier de iesire incomplet!0
140ms296kbFisier de iesire incomplet!0
150ms296kbFisier de iesire incomplet!0
160ms312kbFisier de iesire incomplet!0
174ms436kbFisier de iesire incomplet!0
184ms476kbFisier de iesire incomplet!0
194ms508kbFisier de iesire incomplet!0
204ms512kbFisier de iesire incomplet!0
Punctaj total2

Ceva nu functioneaza?