#81
Matrice
Scrieţi un program care citeşte de la tastatură un tablou bidimensional cu n
linii şi n
coloane și afişează pe ecran numărul valorilor din tablou care sunt strict mai mari decât toți vecinii lor.
Problema | Matrice | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9138235 | Utilizator | |
Fișier | matrice.cpp | Dimensiune | 570 B |
Data încărcării | 11 Aprilie 2018, 12:10 | Scor / rezultat | Eroare de compilare |
matrice.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] #import<iostream> ^ matrice.cpp:15:1: error: stray '\302' in program cin>>n; ^ matrice.cpp:15:1: error: stray '\240' in program matrice.cpp:15:1: error: stray '\302' in program matrice.cpp:15:1: error: stray '\240' in program matrice.cpp:17:1: error: stray '\302' in program for (i=1; i<=n;i++) for (j=1;j<=n;j++) cin>>A[i][j]; ^ matrice.cpp:17:1: error: stray '\240' in program matrice.cpp:17:1: error: stray '\302' in program matrice.cpp:17:1: error: stray '\240' in program matrice.cpp:17:1: error: stray '\302' in program matrice.cpp:17:1: error: stray '\240' in program matrice.cpp:19:1: error: stray '\302' in program for (i=1; i<=n;i++) for (j=1;j<=n;j++){ ^ matrice.cpp:19:1: error: stray '\240' in program matrice.cpp:19:1: error: stray '\302' in program matrice.cpp:19:1: error: stray '\240' in program matrice.cpp:21:1: error: stray '\302' in program int c = A[i][j]; ^ matrice.cpp:21:1: error: stray '\240' in program matrice.cpp:21:1: error: stray '\302' in program matrice.cpp:21:1: error: stray '\240' in program matrice.cpp:21:1: error: stray '\302' in program matrice.cpp:21:1: error: stray '\240' in program matrice.cpp:21:1: error: stray '\302' in program matrice.cpp:21:1: error: stray '\240' in program matrice.cpp:25:1: error: stray '\302' in program if (c > A[i][j-1] && c > A[i][j+1] && c > A[i+1][j] && c > A[i-1][j]){ ^ matrice.cpp:25:1: error: stray '\240' in program matrice.cpp:25:1: error: stray '\302' in program matrice.cpp:25:1: error: stray '\240' in program matrice.cpp:25:1: error: stray '\302' in program matrice.cpp:25:1: error: stray '\240' in program matrice.cpp:25:1: error: stray '\302' in program matrice.cpp:25:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program nr_varfuri = nr_varfuri + 1; ^ matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:27:1: error: stray '\302' in program matrice.cpp:27:1: error: stray '\240' in program matrice.cpp:29:1: error: stray '\302' in program } ^ matrice.cpp:29:1: error: stray '\240' in program matrice.cpp:29:1: error: stray '\302' in program matrice.cpp:29:1: error: stray '\240' in program matrice.cpp:29:1: error: stray '\302' in program matrice.cpp:29:1: error: stray '\240' in program matrice.cpp:29:1: error: stray '\302' in program matrice.cpp:29:1: error: stray '\240' in program matrice.cpp:31:1: error: stray '\302' in program } ^ matrice.cpp:31:1: error: stray '\240' in program matrice.cpp:31:1: error: stray '\302' in program matrice.cpp:31:1: error: stray '\240' in program matrice.cpp:33:1: error: stray '\302' in program cout<<nr_varfuri; ^ matrice.cpp:33:1: error: stray '\240' in program matrice.cpp:33:1: error: stray '\302' in program matrice.cpp:33:1: error: stray '\240' in program matrice.cpp:37:1: error: stray '\302' in program return 0; ^ matrice.cpp:37:1: error: stray '\240' in program matrice.cpp:37:1: error: stray '\302' in program matrice.cpp:37:1: error: stray '\240' in program matrice.cpp:43:1: error: stray '\310' in program Citește mai multe pe Brainly.ro - https://brainly.ro/tema/3833687#readmore ^ matrice.cpp:43:1: error: stray '\231' in program matrice.cpp:43:1: error: 'Cite' does not name a type
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice 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ă.