#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #21383126 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.95 KB |
Data încărcării | 28 Februarie 2020, 12:16 | Scor / rezultat | 76 puncte |
gasti.cpp: In function 'void bfs(int)': gasti.cpp:19:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<adj[a].size();i++){ ^ gasti.cpp: In function 'int main()': gasti.cpp:34:33: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=] fscanf(f, "%d%d", &x, &y); ^ gasti.cpp:77:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(g, "%d", y); ^ gasti.cpp:32:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &n, &m); ^ gasti.cpp:34:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &x, &y); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Corect ambele! | 10 | 10 | ||
2 | 0 secunde | Corect ambele! | 10 | 10 | ||
3 | 0.004 secunde | Corect ambele! | 10 | 10 | ||
4 | 0.024 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
5 | 0.024 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
6 | 0.036 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
7 | 0.028 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
8 | 0.048 secunde | Corect ambele! | 10 | 10 | ||
9 | 0.08 secunde | Corect ambele! | 10 | 10 | ||
10 | 0.108 secunde | Corect ambele! | 10 | 10 | ||
Punctaj total | 76 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.