#1007
Matrice7
Se consideră o matrice cu n
linii şi m
coloane şi elemente numere naturale. Să se modifice matricea în felul următor: toate elementele egale cu valoarea maximă din matrice se înlocuiesc cu valoarea minimă de pe coloana lor.
Problema | Matrice7 | Operații I/O |
![]() matrice7.in /matrice7.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51143579 | Utilizator | |
Fișier | matrice7.cpp | Dimensiune | 712 B |
Data încărcării | 27 Mai 2024, 08:21 | Scor / rezultat | Eroare de compilare |
matrice7.cpp: In function 'int main()': matrice7.cpp:13:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>' if(a[i][j]>max) ^ matrice7.cpp:15:20: error: overloaded function with no contextual type information max=a[i][j]; ^ matrice7.cpp:23:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' if(a[i][j]<min) ^ matrice7.cpp:25:20: error: overloaded function with no contextual type information min=a[i][j]; ^ matrice7.cpp:26:17: error: 'v' was not declared in this scope v[j]=min;; ^ matrice7.cpp:34:25: error: 'max1' was not declared in this scope if(a[i][j]==max1) ^ matrice7.cpp:37:13: error: expected ';' before '}' token } ^ matrice7.cpp:36:23: warning: statement has no effect [-Wunused-value] a[i][j] ^ matrice7.cpp:40:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice7 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ă.