#998
Se consideră o matrice pătratică cu n linii şi n coloane şi elemente numere naturale. Să se modifice matricea în felul următor: toate elementele de pe liniile care conţin valoare maximă din matrice vor fi mărite cu valoarea minimă din matrice.
| Problema | Matrice6 | Operații I/O |
matrice6.in/matrice6.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64658188 | Utilizator | |
| Fișier | matrice6.cpp | Dimensiune | 814 B |
| Data încărcării | 20 Mai 2026, 23:39 | Scor/rezultat | Eroare de compilare |
matrice6.cpp: In function ‘int main()’: matrice6.cpp:30:18: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 30 | else if( j = 0 ; j < n ; ++j) | ^ matrice6.cpp:30:31: error: expected ‘)’ before ‘;’ token 30 | else if( j = 0 ; j < n ; ++j) | ~ ^~ | ) matrice6.cpp:30:9: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 30 | else if( j = 0 ; j < n ; ++j) | ^~~~ matrice6.cpp:30:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 30 | else if( j = 0 ; j < n ; ++j) | ^~ matrice6.cpp:30:37: error: expected ‘;’ before ‘)’ token 30 | else if( j = 0 ; j < n ; ++j) | ^ | ;
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice6 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ă.