Problema | Matrice_Rara | Operații I/O |
![]() matrice_rara.in /matrice_rara.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57790487 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.32 KB |
Data încărcării | 16 Aprilie 2025, 14:46 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:8:15: error: expected ';' at end of member declaration int l, c, val ^ matrice_rara.cpp: In function 'void citire(int, el)': matrice_rara.cpp:13:17: error: no match for 'operator[]' (operand types are 'el' and 'int') fin >> M[i].l >> M[i].c >> M[i].val; ^ matrice_rara.cpp:13:27: error: no match for 'operator[]' (operand types are 'el' and 'int') fin >> M[i].l >> M[i].c >> M[i].val; ^ matrice_rara.cpp:13:37: error: no match for 'operator[]' (operand types are 'el' and 'int') fin >> M[i].l >> M[i].c >> M[i].val; ^ matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:20:17: error: could not convert '(el*)(& a)' from 'el*' to 'el' citire(na, a); ^ matrice_rara.cpp:21:17: error: could not convert '(el*)(& b)' from 'el*' to 'el' citire(nb, b); ^ matrice_rara.cpp:45:13: error: expected ';' before '}' token } ^ matrice_rara.cpp:53:9: error: 'else' without a previous 'if' else ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice_Rara 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ă.