#778
MChenar
Se dă o matrice cu n
linii şi m
coloane şi elemente numere naturale. Să se determine mulțimea formată din elementele distincte ale chenarului matricei.
Problema | MChenar | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54306423 | Utilizator | |
Fișier | mchenar.cpp | Dimensiune | 322 B |
Data încărcării | 25 Noiembrie 2024, 12:43 | Scor / rezultat | Eroare de compilare |
mchenar.cpp: In function 'int main()': mchenar.cpp:7:4: error: expected initializer before '>>' token cin>>n>>m; ^ mchenar.cpp:8:6: error: 'i' was not declared in this scope for (i=1;i<=n;i++) ^ mchenar.cpp:8:13: error: 'n' was not declared in this scope for (i=1;i<=n;i++) ^ mchenar.cpp:9:10: error: 'j' was not declared in this scope for (j=1;i<=m;j++ ^ mchenar.cpp:9:17: error: 'm' was not declared in this scope for (j=1;i<=m;j++ ^ mchenar.cpp:10:1: error: expected ')' before 'cin' cin>>a[i][j]; ^ mchenar.cpp:10:6: error: 'a' was not declared in this scope cin>>a[i][j]; ^ mchenar.cpp:11:6: error: 'j' was not declared in this scope for (j=1;j<m;j++) ^ mchenar.cpp:11:12: error: 'm' was not declared in this scope for (j=1;j<m;j++) ^ mchenar.cpp:12:11: error: 'a' was not declared in this scope cout<<a[1][j]<<" "; ^ mchenar.cpp:13:5: error: 'i' was not declared in this scope for(i=1;i<n;i++) ^ mchenar.cpp:13:11: error: 'n' was not declared in this scope for(i=1;i<n;i++) ^ mchenar.cpp:14:11: error: 'a' was not declared in this scope cout<<a[i][m]<<" "; ^ mchenar.cpp:14:16: error: 'm' was not declared in this scope cout<<a[i][m]<<" "; ^ mchenar.cpp:15:6: error: 'j' was not declared in this scope for (j=m;j>1; j--) ^ mchenar.cpp:15:8: error: 'm' was not declared in this scope for (j=m;j>1; j--) ^ mchenar.cpp:16:7: error: 'a' was not declared in this scope cout<<a[n][j]; ^ mchenar.cpp:16:9: error: 'n' was not declared in this scope cout<<a[n][j]; ^ mchenar.cpp:17:6: error: 'i' was not declared in this scope for (i=n; i>1;i--) ^ mchenar.cpp:17:8: error: 'n' was not declared in this scope for (i=n; i>1;i--) ^ mchenar.cpp:18:11: error: 'a' was not declared in this scope cout<<a[i][1]<<" "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MChenar 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ă.