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 | #57790549 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.35 KB |
Data încărcării | 16 Aprilie 2025, 14:50 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:6:1: error: expected ',' or ';' before 'ofstream' ofstream fin("matrice_rara.out") ^ matrice_rara.cpp:12:8: error: 'a' does not name a type }; a[300001],b[300001],c[600001]; ^ matrice_rara.cpp:14:24: error: 'el' has not been declared void citire(int n, el M) ^ matrice_rara.cpp: In function 'void citire(int, int)': matrice_rara.cpp:18:17: error: invalid types 'int[int]' for array subscript cin>>M[i].l>>M[i].c>>M[i].v; ^ matrice_rara.cpp:18:25: error: invalid types 'int[int]' for array subscript cin>>M[i].l>>M[i].c>>M[i].v; ^ matrice_rara.cpp:18:33: error: invalid types 'int[int]' for array subscript cin>>M[i].l>>M[i].c>>M[i].v; ^ matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:26:16: error: 'a' was not declared in this scope citire(na, a); ^ matrice_rara.cpp:27:16: error: 'b' was not declared in this scope citire(nb, b); ^ matrice_rara.cpp:34:10: error: 'c' was not declared in this scope c[k]=a[i]; ^ matrice_rara.cpp:40:10: error: 'c' was not declared in this scope c[k]=b[j]; ^ matrice_rara.cpp:45:10: error: 'c' was not declared in this scope c[k]=a[i]; ^ matrice_rara.cpp:51:10: error: 'c' was not declared in this scope c[k]=b[j]; ^ matrice_rara.cpp:64:10: error: 'c' was not declared in this scope c[k]=a[i]; ^ matrice_rara.cpp:74:10: error: 'c' was not declared in this scope c[k]=a[i]; ^ matrice_rara.cpp:80:10: error: 'c' was not declared in this scope c[k]=b[i]; ^ matrice_rara.cpp:83:6: error: 'fout' was not declared in this scope fout<<k<<"\n"; ^ matrice_rara.cpp: At global scope: matrice_rara.cpp:85:5: error: expected unqualified-id before 'return' return 0; ^ matrice_rara.cpp:86:1: error: expected declaration before '}' token } ^
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ă.