#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 | #45127014 | Utilizator | |
Fișier | gradmax.cpp | Dimensiune | 673 B |
Data încărcării | 03 Octombrie 2023, 13:50 | Scor / rezultat | Eroare de compilare |
gradmax.cpp: In function 'void g()': gradmax.cpp:33:15: error: too many arguments to function 'void g()' if(g(i)>maxx) ^ gradmax.cpp:25:7: note: declared here void g() ^ gradmax.cpp:33:17: error: invalid operands of types 'void' and 'int' to binary 'operator>' if(g(i)>maxx) ^ gradmax.cpp:35:18: error: too many arguments to function 'void g()' maxx=g(i); ^ gradmax.cpp:25:7: note: declared here void g() ^ gradmax.cpp:35:14: error: void value not ignored as it ought to be maxx=g(i); ^ gradmax.cpp:38:17: error: too many arguments to function 'void g()' else if(g(i)==maxx) ^ gradmax.cpp:25:7: note: declared here void g() ^ gradmax.cpp:38:20: error: invalid operands of types 'void' and 'int' to binary 'operator==' else if(g(i)==maxx) ^ gradmax.cpp:43:17: error: too many arguments to function 'void g()' if(g(i)>maxx) ^ gradmax.cpp:25:7: note: declared here void g() ^ gradmax.cpp:43:19: error: invalid operands of types 'void' and 'int' to binary 'operator>' if(g(i)>maxx) ^
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ă.