#4158
Grade11
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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56611592 | Utilizator | |
Fișier | grade11.cpp | Dimensiune | 397 B |
Data încărcării | 27 Februarie 2025, 11:48 | Scor / rezultat | Eroare de compilare |
grade11.cpp:3:12: error: expected primary-expression before ',' token int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:13: error: 'GI' was not declared in this scope int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:21: error: 'n' was not declared in this scope int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:23: error: 'm' was not declared in this scope int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:25: error: 'gasit' was not declared in this scope int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:30: error: expected ']' before ';' token int GE[101[,GI[101],n,m,gasit; ^ grade11.cpp:3:30: error: expected ']' before ';' token grade11.cpp: In function 'int main()': grade11.cpp:5:8: error: 'n' was not declared in this scope { cin>>n>>m; ^ grade11.cpp:5:11: error: 'm' was not declared in this scope { cin>>n>>m; ^ grade11.cpp:6:24: error: expected ')' before ';' token for (int i=1;i<= m;i++; ^ grade11.cpp:9:8: error: 'GE' was not declared in this scope GE[x]++ ^ grade11.cpp:10:12: error: expected ';' before 'Ge' Ge[y]++ ^ grade11.cpp:13:11: error: 'GE' was not declared in this scope if (GE[i]&&GE[i]&GI==0|| G[i] % GE[i]==0) ^ grade11.cpp:13:24: error: 'GI' was not declared in this scope if (GE[i]&&GE[i]&GI==0|| G[i] % GE[i]==0) ^ grade11.cpp:13:32: error: 'G' was not declared in this scope if (GE[i]&&GE[i]&GI==0|| G[i] % GE[i]==0) ^ grade11.cpp:15:8: error: 'gasit' was not declared in this scope gasit=1; ^ grade11.cpp:17:10: error: 'gasit' was not declared in this scope if (gasit) cout<<"Nu exista"; ^
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ă.