#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 | #64548942 | Utilizator | |
| Fișier | maxmat.cpp | Dimensiune | 630 B |
| Data încărcării | 13 Mai 2026, 17:43 | Scor/rezultat | 100 puncte |
maxmat.cpp: In function ‘int main()’: maxmat.cpp:20:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 20 | for(j=1;j<=m;j++) | ^~~ maxmat.cpp:22:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 22 | int mx,ind; | ^~~ maxmat.cpp:16:17: warning: unused variable ‘s’ [-Wunused-variable] 16 | { long long s,x; | ^ maxmat.cpp:16:19: warning: unused variable ‘x’ [-Wunused-variable] 16 | { long long s,x; | ^ maxmat.cpp:31:32: warning: ‘ind’ may be used uninitialized [-Wmaybe-uninitialized] 31 | fout<<mx<<" "<<ind<<"\n"; | ^~~~ maxmat.cpp:22:15: note: ‘ind’ was declared here 22 | int mx,ind; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 40 | 40 | ||
| 3 | 0.001 secunde | OK. | 40 | 40 | ||
| Punctaj total | 100 | |||||
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ă.