#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 | #64476032 | Utilizator | |
| Fișier | grade2.cpp | Dimensiune | 700 B |
| Data încărcării | 09 Mai 2026, 14:13 | Scor/rezultat | Eroare de compilare |
grade2.cpp: In function ‘int gr_ext(int)’: grade2.cpp:7:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 7 | for( i=1; i<=n; i++) | ^~~ grade2.cpp:10:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return gr; | ^~~~~~ grade2.cpp: In function ‘int gr_intt(int)’: grade2.cpp:14:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for( i=1; i<=n; i++) | ^~~ grade2.cpp:17:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | return gr; | ^~~~~~ grade2.cpp: In function ‘int main()’: grade2.cpp:31:23: error: ‘gr_int’ was not declared in this scope; did you mean ‘gr_intt’? 31 | if(gr_ext(i)==gr_int(i)) | ^~~~~~ | gr_intt grade2.cpp:35:23: error: ‘gr_int’ was not declared in this scope; did you mean ‘gr_intt’? 35 | if(gr_ext(i)==gr_int(i)) | ^~~~~~ | gr_intt
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ă.