#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 | #64541822 | Utilizator | |
| Fișier | grade3.cpp | Dimensiune | 440 B |
| Data încărcării | 13 Mai 2026, 11:55 | Scor/rezultat | Eroare de compilare |
grade3.cpp:13:1: error: expected declaration before ‘}’ token 13 | } | ^ grade3.cpp: In function ‘int main()’: grade3.cpp:16:12: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for(int i=1;i<=n;i++) | ^~~ grade3.cpp:18:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | cout<<nr<<endl; | ^~~~ grade3.cpp:19:25: warning: ‘<<’ in boolean context, did you mean ‘<’? [-Wint-in-bool-context] 19 | for(int i=1;i<<n;i++) | ~^~~ grade3.cpp:20:16: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 20 | if(a[i][0]<a[0][i]) | ^~ grade3.cpp:21:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 21 | cout<<i<<" "; | ^ grade3.cpp:21:29: error: expected ‘}’ at end of input grade3.cpp:14:11: note: to match this ‘{’ 14 | int main(){citire(); | ^
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ă.