#413
Se dă lista muchiilor unui graf neorientat. Să se afișeze matricea de adiacență a grafului.
Problema | Adiacenta1 | Operații I/O |
![]() adiacenta1.in /adiacenta1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58514446 | Utilizator | |
Fișier | adiacenta1.cpp | Dimensiune | 646 B |
Data încărcării | 12 Iunie 2025, 22:28 | Scor / rezultat | Eroare de compilare |
adiacenta1.cpp: In function 'void citire()': adiacenta1.cpp:17:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>' if(n>max) ^ adiacenta1.cpp:19:16: error: overloaded function with no contextual type information max=n; ^ adiacenta1.cpp:21:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>' if(m>max) ^ adiacenta1.cpp:23:16: error: overloaded function with no contextual type information max=m; ^ adiacenta1.cpp: In function 'void afis()': adiacenta1.cpp:30:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for(int i=1; i<=max; i++) ^ adiacenta1.cpp:32:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for(int j=1; j<=max; j++) ^ adiacenta1.cpp: In function 'int main()': adiacenta1.cpp:42:9: warning: unused variable 'max' [-Wunused-variable] int max=0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Adiacenta1 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ă.