#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 | #37257759 | Utilizator | |
Fișier | sumcolmax.cpp | Dimensiune | 1.71 KB |
Data încărcării | 28 Iulie 2022, 14:23 | Scor / rezultat | Eroare de compilare |
sumcolmax.cpp:21:30: error: stray '#' in program for(i=1 ; i<=n ; i++)#include <iostream> ^ sumcolmax.cpp: In function 'int main()': sumcolmax.cpp:21:31: error: 'include' was not declared in this scope for(i=1 ; i<=n ; i++)#include <iostream> ^ sumcolmax.cpp:21:48: error: expected primary-expression before '>' token for(i=1 ; i<=n ; i++)#include <iostream> ^ sumcolmax.cpp:24:1: error: expected primary-expression before 'using' using namespace std; ^ sumcolmax.cpp:24:1: error: expected ';' before 'using' sumcolmax.cpp:28:1: error: a function-definition is not allowed here before '{' token { ^ sumcolmax.cpp:92:1: error: expected '}' at end of input } ^ sumcolmax.cpp:9:45: warning: unused variable 'maxim' [-Wunused-variable] int n, m, mat[26][26]={}, i, j, suma=0, maxim=INT_MIN, coloana; ^ sumcolmax.cpp:9:60: warning: unused variable 'coloana' [-Wunused-variable] int n, m, mat[26][26]={}, i, j, suma=0, maxim=INT_MIN, coloana; ^ sumcolmax.cpp:92:1: error: expected '}' at end of input } ^
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ă.