#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51109040 | Utilizator | |
Fișier | grade11.cpp | Dimensiune | 499 B |
Data încărcării | 24 Mai 2024, 08:45 | Scor / rezultat | Eroare de compilare |
grade11.cpp: In function 'int main()': grade11.cpp:6:2: error: expected primary-expression before ',' token {, ^ grade11.cpp:7:5: error: expected primary-expression before 'int' int n, m, x, y, vs[101] = {0}, vd[101] = {0}, bec = 0; ^ grade11.cpp:7:5: error: expected ';' before 'int' grade11.cpp:7:34: error: expected primary-expression before ',' token int n, m, x, y, vs[101] = {0}, vd[101] = {0}, bec = 0; ^ grade11.cpp:7:36: error: 'vd' was not declared in this scope int n, m, x, y, vs[101] = {0}, vd[101] = {0}, bec = 0; ^ grade11.cpp:7:51: error: 'bec' was not declared in this scope int n, m, x, y, vs[101] = {0}, vd[101] = {0}, bec = 0; ^ grade11.cpp:9:12: error: 'n' was not declared in this scope cin >> n >> m; ^ grade11.cpp:9:17: error: 'm' was not declared in this scope cin >> n >> m; ^ grade11.cpp:13:16: error: 'x' was not declared in this scope cin >> x >> y; ^ grade11.cpp:13:21: error: 'y' was not declared in this scope cin >> x >> y; ^ grade11.cpp:15:9: error: 'vs' was not declared in this scope vs[x]++; ^ grade11.cpp:21:27: error: 'vs' was not declared in this scope if((vd[i] != 0 && vs[i] != 0)&& (vs[i] % vd[i] == 0 || vd[i] % vs[i] == 0) ) ^
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ă.