#573
Se dă lista arcelor unui graf orientat. Să se determine nodurile care au gradul exterior egal cu gradul interior.
| Problema | Grade2 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64707312 | Utilizator | |
| Fișier | grade2.cpp | Dimensiune | 801 B |
| Data încărcării | 25 Mai 2026, 11:31 | Scor/rezultat | 0 puncte |
grade2.cpp: In function ‘int gradext(int)’: grade2.cpp:8:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 8 | for (j=1;j<=n;j++) | ^~~ grade2.cpp:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return s; | ^~~~~~ grade2.cpp: In function ‘int gradint(int)’: grade2.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for (j=1;j<=n;j++) | ^~~ grade2.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.001 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 Grade2 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ă.