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 | #58120396 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 897 B |
Data încărcării | 15 Mai 2025, 08:50 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:10:5: error: 'informative' does not name a type informative inf; ^ matrice_rara.cpp: In function 'void CsiI(int)': matrice_rara.cpp:22:10: error: no match for 'operator=' (operand types are 'nod' and 'nod*') p=new nod; ^ matrice_rara.cpp:22:10: note: candidates are: matrice_rara.cpp:9:8: note: nod& nod::operator=(const nod&) struct nod{ ^ matrice_rara.cpp:9:8: note: no known conversion for argument 1 from 'nod*' to 'const nod&' matrice_rara.cpp:9:8: note: nod& nod::operator=(nod&&) matrice_rara.cpp:9:8: note: no known conversion for argument 1 from 'nod*' to 'nod&&' matrice_rara.cpp:23:10: error: base operand of '->' has non-pointer type 'nod' p->inf.l=x; ^ matrice_rara.cpp:24:10: error: base operand of '->' has non-pointer type 'nod' p->inf.c=y; ^ matrice_rara.cpp:25:10: error: base operand of '->' has non-pointer type 'nod' p->inf.v=z; ^ matrice_rara.cpp:26:10: error: base operand of '->' has non-pointer type 'nod' p->urm=NULL; ^ matrice_rara.cpp:28:17: error: cannot convert 'nod' to 'nod*' in assignment prim=p; ^ matrice_rara.cpp:32:21: error: base operand of '->' has non-pointer type 'nod' if(p->inf.v<q->urm>inf.v) ^ matrice_rara.cpp:32:36: error: 'inf' was not declared in this scope if(p->inf.v<q->urm>inf.v) ^ matrice_rara.cpp:34:22: error: base operand of '->' has non-pointer type 'nod' p->urm=q->urm; ^ matrice_rara.cpp:35:27: error: cannot convert 'nod' to 'nod*' in assignment q->urm=p; ^ matrice_rara.cpp:39:12: error: expected primary-expression before '}' token } ^ matrice_rara.cpp:39:12: error: expected ';' 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ă.