#192
Să se afișeze elementele de pe coloana cu suma elementelor maximă într-o matrice.
| Problema | SumColMax | Operații I/O |
sumcolmax.in/sumcolmax.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64693610 | Utilizator | |
| Fișier | sumcolmax.cpp | Dimensiune | 524 B |
| Data încărcării | 23 Mai 2026, 22:03 | Scor/rezultat | Eroare de compilare |
sumcolmax.cpp: In function ‘int main()’: sumcolmax.cpp:11:1: error: ‘fin’ was not declared in this scope; did you mean ‘in’? 11 | fin>>n>>m; | ^~~ | in sumcolmax.cpp:28:5: error: ‘fout’ was not declared in this scope; did you mean ‘out’? 28 | fout<<a[i][cmax]<<" "; | ^~~~ | out sumcolmax.cpp:27:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 27 | for(i=1;i<=n;i++) | ^~~ sumcolmax.cpp:29:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 29 | return 0; | ^~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumColMax 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ă.