#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 | #5071379 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 1.09 KB |
Data încărcării | 30 Aprilie 2017, 15:48 | Scor / rezultat | 82 puncte |
gasti.cpp: In function 'int dfs(int)': gasti.cpp:14:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<a[nod].size(); i++) ^ gasti.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ gasti.cpp: In function 'int main()': gasti.cpp:52:56: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] printf("%d %d", nr, (long long)v[nr]*rez%666013); ^ gasti.cpp:24:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("gasti.in", "r", stdin); ^ gasti.cpp:25:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("gasti.out", "w", stdout); ^ gasti.cpp:26:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ gasti.cpp:29:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%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 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
5 | 0.016 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
6 | 0.032 secunde | Corect prima, Gresit a doua! | 10 | 4 | ||
7 | 0.028 secunde | Corect ambele! | 10 | 10 | ||
8 | 0.044 secunde | Corect ambele! | 10 | 10 | ||
9 | 0.076 secunde | Corect ambele! | 10 | 10 | ||
10 | 0.116 secunde | Corect ambele! | 10 | 10 | ||
Punctaj total | 82 |
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ă.