#4158
Se dă lista arcelor unui graf orientat. Să se determine nodurile care au gradul exterior divizibil cu gradul interior sau gradul interior divizibil cu gradul exterior.
| Problema | Grade11 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64573110 | Utilizator | |
| Fișier | grade11.cpp | Dimensiune | 672 B |
| Data încărcării | 15 Mai 2026, 09:29 | Scor/rezultat | Eroare de compilare |
grade11.cpp: In function ‘int gr_ext(int)’: grade11.cpp:8:13: error: invalid types ‘int[int]’ for array subscript 8 | if(a[x][i]==1) | ^ grade11.cpp:7:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 7 | for(i=1; i<=n; i++) | ^~~ grade11.cpp:10:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return gr; | ^~~~~~ grade11.cpp: In function ‘int gr_int(int)’: grade11.cpp:15:13: error: invalid types ‘int[int]’ for array subscript 15 | if(a[i][x]==1) | ^ grade11.cpp:14:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(i=1;i<=n; i++) | ^~~ grade11.cpp:17:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | return gr; | ^~~~~~ grade11.cpp: In function ‘int main()’: grade11.cpp:26:13: error: invalid types ‘int[int]’ for array subscript 26 | a[i][j]=1; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Grade11 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ă.