#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 | #63659171 | Utilizator | |
| Fișier | grade2.cpp | Dimensiune | 645 B |
| Data încărcării | 13 Martie 2026, 08:29 | Scor/rezultat | Eroare de compilare |
grade2.cpp: In function 'int grade_ext(int)': grade2.cpp:7:5: error: 's' was not declared in this scope s=0; ^ grade2.cpp: In function 'int grade_int(int)': grade2.cpp:14:5: error: 's' was not declared in this scope s=0; ^ grade2.cpp: In function 'void citire()': grade2.cpp:21:13: error: 'm' was not declared in this scope cin>>n>>m; ^ grade2.cpp:24:14: error: 'x' was not declared in this scope cin>>x>>y; ^ grade2.cpp:24:17: error: 'y' was not declared in this scope cin>>x>>y; ^ grade2.cpp: In function 'int main()': grade2.cpp:32:5: error: expected ';' before 'int' int k=0; ^ grade2.cpp:34:22: error: 'grad_ext' was not declared in this scope if(grad_ext(i)==grad_int(i)) ^ grade2.cpp:34:35: error: 'grad_int' was not declared in this scope if(grad_ext(i)==grad_int(i)) ^ grade2.cpp:35:9: error: 'k' was not declared in this scope k++; ^ grade2.cpp:37:11: error: 'k' was not declared in this scope cout<<k<<endl; ^ grade2.cpp:39:22: error: 'grad_ext' was not declared in this scope if(grad_ext(i)==grad_int(i)) ^ grade2.cpp:39:35: error: 'grad_int' was not declared in this scope if(grad_ext(i)==grad_int(i)) ^ grade2.cpp: In function 'int grade_ext(int)': grade2.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ grade2.cpp: In function 'int grade_int(int)': grade2.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
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ă.