#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 | #58189270 | Utilizator | |
Fișier | maxmat.cpp | Dimensiune | 894 B |
Data încărcării | 19 Mai 2025, 14:40 | Scor / rezultat | Eroare de compilare |
maxmat.cpp:21:2: error: stray '#' in program }#include<fstream> ^ maxmat.cpp:21:3: error: 'include' does not name a type }#include<fstream> ^ maxmat.cpp:23:13: error: redefinition of 'std::ifstream cin' ifstream cin("maxmat.in"); ^ maxmat.cpp:3:10: error: 'std::ifstream cin' previously declared here ifstream cin("maxmat.in"); ^ maxmat.cpp:24:14: error: redefinition of 'std::ofstream cout' ofstream cout("maxmat.out"); ^ maxmat.cpp:4:10: error: 'std::ofstream cout' previously declared here ofstream cout("maxmat.out"); ^ maxmat.cpp:25:13: error: redefinition of 'int a [26][26]' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:5: error: 'int a [26][26]' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:15: error: redefinition of 'int n' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:15: error: 'int n' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:17: error: redefinition of 'int m' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:17: error: 'int m' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:19: error: redefinition of 'int i' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:19: error: 'int i' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:21: error: redefinition of 'int j' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:21: error: 'int j' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:23: error: redefinition of 'int maxi' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:23: error: 'int maxi' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:25:28: error: redefinition of 'int cmax' int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp:5:28: error: 'int cmax' previously declared here int a[26][26],n,m,i,j,maxi,cmax; ^ maxmat.cpp: In function 'int main()': maxmat.cpp:26:5: error: redefinition of 'int main()' int main() ^ maxmat.cpp:6:5: error: 'int main()' previously defined here int main() ^
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ă.