#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 | #50894273 | Utilizator | |
| Fișier | grade2.cpp | Dimensiune | 585 B |
| Data încărcării | 13 Mai 2024, 09:53 | Scor/rezultat | Eroare de compilare |
grade2.cpp: In function 'int main()': grade2.cpp:4:18: error: expected initializer before 'n' {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:40: error: expected primary-expression before ',' token {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:42: error: 'gradext' was not declared in this scope {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:60: error: 'i' was not declared in this scope {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:63: error: 'j' was not declared in this scope {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:66: error: 'k' was not declared in this scope {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:4:69: error: 'C' was not declared in this scope {int a[101][101] n, m, gradint[101]={0}, gradext[101]={0}, i, j, k, C=0; ^ grade2.cpp:5:7: error: 'n' was not declared in this scope cin>>n>>m; ^ grade2.cpp:5:10: error: 'm' was not declared in this scope cin>>n>>m; ^ grade2.cpp:9:6: error: 'a' was not declared in this scope a[i][j]=0; ^ grade2.cpp:13:3: error: 'a' was not declared in this scope a[k][j]=1; ^ grade2.cpp:18:25: error: 'a' was not declared in this scope {gradext[i]=gradext[i]+a[i][j]; ^ grade2.cpp:19:3: error: 'gradint' was not declared in this scope gradint[i]=gradint[i]+a[j][i];} ^ grade2.cpp:21:9: error: 'gradint' was not declared in this scope if(gradint[i]==gradext[i]) ^ grade2.cpp:22:6: error: 'contor' was not declared in this scope contor++; ^ grade2.cpp:24:12: error: 'contor' was not declared in this scope cout<<contor<<endl; ^ grade2.cpp:27:9: error: 'gradint' was not declared in this scope if(gradint[i]==gradext[i]) ^
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ă.