#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 | #64554044 | Utilizator | |
| Fișier | sumcolmax.cpp | Dimensiune | 566 B |
| Data încărcării | 14 Mai 2026, 08:54 | Scor/rezultat | Eroare de compilare |
sumcolmax.cpp: In function ‘int main()’: sumcolmax.cpp:11:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 11 | for(int i=1;i<=n;i++) | ^~~ sumcolmax.cpp:16:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | for(int j=1;j<=m;j++){ | ^~~ sumcolmax.cpp:19:17: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] 19 | int k; | ^ sumcolmax.cpp:33:20: error: ‘k’ was not declared in this scope 33 | fout<<a[i][k]<<" "; | ^ sumcolmax.cpp:7:20: warning: unused variable ‘smax’ [-Wunused-variable] 7 | int a[11][11],n,m,smax; | ^~~~
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ă.