#4153
Se dă lista arcelor unui graf orientat. Să se determine nodurile care au gradul exterior mai mic decât gradul interior.
| Problema | Grade3 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64707519 | Utilizator | |
| Fișier | grade3.cpp | Dimensiune | 673 B |
| Data încărcării | 25 Mai 2026, 11:37 | Scor/rezultat | 0 puncte |
grade3.cpp: In function ‘int gradext(int)’: grade3.cpp:8:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 8 | for (j=1;j<=n;j++) | ^~~ grade3.cpp:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return s; | ^~~~~~ grade3.cpp: In function ‘int gradint(int)’: grade3.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for (j=1;j<=n;j++) | ^~~ grade3.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | return s; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.003 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade3 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ă.