#78
FCitireMatrice
C++
Scrieți definiția completă subprogramului C++ citmat
care citește de la tastatură dimensiunile și elementele unui tablou bidimensional.
Problema | FCitireMatrice | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58497772 | Utilizator | |
Fișier | fcitirematrice.cpp | Dimensiune | 140 B |
Data încărcării | 11 Iunie 2025, 16:39 | Scor / rezultat | Eroare de compilare |
fcitirematrice.cpp:5:21: error: 'm' has not been declared void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:5:24: error: 'a' has not been declared void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:5:36: error: 'i' has not been declared void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:5:38: error: 'j' has not been declared void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:5:39: error: expected ')' before ';' token void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:5:40: error: expected unqualified-id before ')' token void citmat(int n, m, a[100][100],i,j;) ^ fcitirematrice.cpp:7:5: error: expected unqualified-id before 'for' for (i=0;i<=n;i++) ^ fcitirematrice.cpp:7:14: error: 'i' does not name a type for (i=0;i<=n;i++) ^ fcitirematrice.cpp:7:19: error: 'i' does not name a type for (i=0;i<=n;i++) ^ fcitirematrice.cpp:8:18: error: 'j' does not name a type for (j=0;j<=n;j++) ^ fcitirematrice.cpp:8:23: error: 'j' does not name a type for (j=0;j<=n;j++) ^ fcitirematrice.cpp: In function 'int main()': fcitirematrice.cpp:14:14: error: invalid conversion from 'int (*)[100]' to 'int' [-fpermissive] citmat(a,n,m); ^ fcitirematrice.cpp:14:14: error: invalid conversion from 'int' to 'int (*)[100]' [-fpermissive] fcitirematrice.cpp:14:14: error: too few arguments to function 'void citmat(int, int, int (*)[100], int, int)' fcitirematrice.cpp:5:7: note: declared here void citmat(int n, m, a[100][100],i,j;) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FCitireMatrice face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.