#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 | #64573398 | Utilizator | |
| Fișier | grade3.cpp | Dimensiune | 640 B |
| Data încărcării | 15 Mai 2026, 09:38 | Scor/rezultat | Eroare de compilare |
grade3.cpp: In function ‘int gr_ext(int)’: grade3.cpp:7:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 7 | for(i=1; i<=n; i++) | ^~~ grade3.cpp:10:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return gr; | ^~~~~~ grade3.cpp: In function ‘int gr_int(int)’: grade3.cpp:14:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(i=1; i<=n; i++) | ^~~ grade3.cpp:17:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | return gr;} | ^~~~~~ grade3.cpp: In function ‘int main()’: grade3.cpp:34:16: error: expected ‘}’ at end of input 34 | return 0; } | ^ grade3.cpp:19:1: note: to match this ‘{’ 19 | { | ^
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ă.