#191
Să se determine, pentru fiecare linie a unei matrice, elementul maxim și indicele coloanei pe care se află.
| Problema | MaxMat | Operații I/O |
maxmat.in/maxmat.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64624588 | Utilizator | |
| Fișier | maxmat.cpp | Dimensiune | 840 B |
| Data încărcării | 19 Mai 2026, 10:16 | Scor/rezultat | 0 puncte |
maxmat.cpp: In function ‘int main()’: maxmat.cpp:30:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 30 | for (i = 1; i <= n; i++) | ^~~ maxmat.cpp:34:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 34 | for (i = 1; i <= n; i++) { | ^~~ maxmat.cpp:35:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 35 | for (j = 1; j <= m; j++) | ^~~ maxmat.cpp:41:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 41 | fout << maxim << " " << linie; | ^~~~ maxmat.cpp:25:15: warning: unused variable ‘k’ [-Wunused-variable] 25 | int i, j, k; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MaxMat 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ă.