#2707
Dându-se o matrice de numere întregi cu n linii și n coloane, să se verifice dacă este sau nu matrice de adiacență asociată unui graf neorientat.
Folclorul informatic
| Problema | matad | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64826067 | Utilizator | |
| Fișier | matad.cpp | Dimensiune | 881 B |
| Data încărcării | 04 Iunie 2026, 00:00 | Scor/rezultat | 90 puncte |
matad.cpp: In function ‘int main()’: matad.cpp:10:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 10 | for(i=1; i<=n; ++i) | ^~~ matad.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | if(rez==0){ | ^~ matad.cpp:23:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 23 | if(rez) | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | ||
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | OK. | 10 | 10 | ||
| 5 | 0.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | OK. | 10 | 10 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.002 secunde | OK. | 10 | 10 | ||
| 10 | 0.002 secunde | OK. | 10 | 10 | ||
| Punctaj total | 90 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema matad 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ă.