#417
GradMax
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile de grad maxim.
Problema | GradMax | Operații I/O |
gradmax.in /gradmax.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50082062 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 1.34 KB |
Data încărcării | 26 Martie 2024, 14:21 | Scor / rezultat | Eroare de compilare |
gradmax.cpp: In function 'int main()': gradmax.cpp:16:44: error: 'i' was not declared in this scope int n, max = 0, s, grad, nodmax = 0, v[i]; ^ gradmax.cpp:20:16: error: 'x' was not declared in this scope cin >> x >> y; ^ gradmax.cpp:20:21: error: 'y' was not declared in this scope cin >> x >> y; ^ gradmax.cpp:29:9: error: 'v' was not declared in this scope v[i] = 0; ^ gradmax.cpp:37:9: error: 'v' was not declared in this scope v[i] = 0 ^ gradmax.cpp:38:9: error: expected ';' before 'for' for (int j = 1; j <= nodmax; j++) ^ gradmax.cpp:38:25: error: 'j' was not declared in this scope for (int j = 1; j <= nodmax; j++) ^ gradmax.cpp:38:41: error: expected ';' before ')' token for (int j = 1; j <= nodmax; j++) ^ gradmax.cpp:45:13: error: 'v' was not declared in this scope if (v[i] != -1) ^ gradmax.cpp:16:21: warning: unused variable 's' [-Wunused-variable] int n, max = 0, s, grad, nodmax = 0, v[i]; ^ gradmax.cpp:16:24: warning: unused variable 'grad' [-Wunused-variable] int n, max = 0, s, grad, nodmax = 0, v[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GradMax 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ă.