#416
Se dă lista muchiilor unui graf neorientat. Să se afișeze gradul fiecărui vârf.
| Problema | Grade | Operații I/O |
grade.in/grade.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64508961 | Utilizator | |
| Fișier | grade.cpp | Dimensiune | 855 B |
| Data încărcării | 11 Mai 2026, 19:53 | Scor/rezultat | 0 puncte |
grade.cpp: In function ‘int main()’: grade.cpp:23:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 23 | for(j=1;j<=n;j++) | ^~~ grade.cpp:25:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 25 | a[i][0]=s; | ^ grade.cpp:28:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 28 | for(i=1;i<=n;i++) | ^~~ grade.cpp:32:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 32 | for(i=1;i<=n;i++) | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 60 | 0 | ||
| 3 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade 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ă.