#668
Se dă o matrice cu n
linii și m
coloane și elemente numere naturale. Să se determine câte perechi de linii consecutive din matrice sunt identice.
Problema | Identice1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58508556 | Utilizator | |
Fișier | identice1.cpp | Dimensiune | 545 B |
Data încărcării | 12 Iunie 2025, 15:14 | Scor / rezultat | Eroare de compilare |
identice1.cpp: In function 'int main()': identice1.cpp:5:13: error: expected unqualified-id before '[' token int n,m,[101][101],i,j,c; ^ identice1.cpp:8:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ identice1.cpp:10:13: error: 'j' was not declared in this scope for(j=1;j<=m;j++) ^ identice1.cpp:12:18: error: 'a' was not declared in this scope cin>>a[i][j]; ^ identice1.cpp:16:10: error: 'i' was not declared in this scope for (i=1;i<=n-1;i++) ^ identice1.cpp:19:13: error: 'j' was not declared in this scope for(j=1;j<=m;j++) ^ identice1.cpp:21:16: error: 'a' was not declared in this scope if(a[i][j]!=a[i+1][j]) ^ identice1.cpp:29:13: error: 'c' was not declared in this scope c++; ^ identice1.cpp:31:11: error: 'c' was not declared in this scope cout<<c; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Identice1 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ă.