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 | #49768830 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.08 KB |
Data încărcării | 14 Martie 2024, 12:50 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:11:8: error: expected unqualified-id before '[' token triplet[10010]; ^ matrice_rara.cpp: In function 'void citire(matr&)': matrice_rara.cpp:16:10: error: 'struct matr' has no member named 't' f>>A.t[i].l>>A.t[i].c>>A.t[i].v; ^ matrice_rara.cpp:16:20: error: 'struct matr' has no member named 't' f>>A.t[i].l>>A.t[i].c>>A.t[i].v; ^ matrice_rara.cpp:16:30: error: 'struct matr' has no member named 't' f>>A.t[i].l>>A.t[i].c>>A.t[i].v; ^ matrice_rara.cpp: At global scope: matrice_rara.cpp:18:18: error: 'lin' is not a type int elem(int lin,lin col,matr A){ ^ matrice_rara.cpp: In function 'int elem(int, int, matr)': matrice_rara.cpp:19:20: error: 'a' was not declared in this scope for(int i=1;i<=a.k;i++) ^ matrice_rara.cpp:20:31: error: 'struct matr' has no member named 't' if(a.t[i].l==lin && A.t[i].c==col) ^ matrice_rara.cpp: In function 'void afisB(matr)': matrice_rara.cpp:27:19: error: 'valeu' was not declared in this scope g<<valeu(i,j,A)<<" "<<endl; ^ matrice_rara.cpp: In function 'void suma(matr, matr, matr)': matrice_rara.cpp:45:11: error: 'struct matr' has no member named 't' C.t[C.k].l=i; ^ matrice_rara.cpp:46:11: error: 'struct matr' has no member named 't' C.t[C.k].c=j; ^ matrice_rara.cpp:47:11: error: 'struct matr' has no member named 't' C.t[C.k].v=s; ^ matrice_rara.cpp:38:9: warning: unused variable 'i' [-Wunused-variable] int i,j,s; ^ matrice_rara.cpp:38:11: warning: unused variable 'j' [-Wunused-variable] int i,j,s; ^ matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:60:5: error: 'afis' was not declared in this scope afis B(c); ^ matrice_rara.cpp:60:10: error: expected ';' before 'B' afis B(c); ^
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ă.