#191
MaxMat
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 | #57954693 | Utilizator | |
Fișier | maxmat.cpp | Dimensiune | 479 B |
Data încărcării | 05 Mai 2025, 10:44 | Scor / rezultat | Eroare de compilare |
maxmat.cpp: In function 'int main()': maxmat.cpp:4:5: error: 'ifstream' was not declared in this scope ifstream fin ("maxmat.in"); ^ maxmat.cpp:4:14: error: expected ';' before 'fin' ifstream fin ("maxmat.in"); ^ maxmat.cpp:5:5: error: 'fin' was not declared in this scope fin>>n>>m; ^ maxmat.cpp:10:5: error: 'ofstream' was not declared in this scope ofstream fout("maxmat.out"); ^ maxmat.cpp:10:14: error: expected ';' before 'fout' ofstream fout("maxmat.out"); ^ maxmat.cpp:19:9: error: 'fout' was not declared in this scope fout<<maxn<<" "<<p<<endl; ^ maxmat.cpp:19:29: error: 'endl' was not declared in this scope fout<<maxn<<" "<<p<<endl; ^ maxmat.cpp:21:5: error: 'fout' was not declared in this scope fout.close(); ^
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ă.