#192
SumColMax
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 | #50388864 | Utilizator | |
Fișier | sumcolmax.cpp | Dimensiune | 516 B |
Data încărcării | 07 Aprilie 2024, 22:10 | Scor / rezultat | Eroare de compilare |
sumcolmax.cpp:4:11: error: variable 'std::ifstream f' has initializer but incomplete type ifstream f("sumcolmax.in"); ^ sumcolmax.cpp:5:11: error: variable 'std::ofstream g' has initializer but incomplete type ofstream g("sumcolmax.out"); ^ sumcolmax.cpp:6:25: error: conflicting declaration 'long long int a' long long n,a[101][101],a,m,maxi=-1; ^ sumcolmax.cpp:6:13: error: 'a' has a previous declaration as 'long long int a [101][101]' long long n,a[101][101],a,m,maxi=-1; ^ sumcolmax.cpp: In function 'int main()': sumcolmax.cpp:10:10: error: 'i' was not declared in this scope for (i=1; i<=n; i++) ^ sumcolmax.cpp:11:14: error: 'j' was not declared in this scope for (j=1; j<=m ; j++) ^ sumcolmax.cpp:13:10: error: 'j' was not declared in this scope for (j=1; j<=m; j++) ^ sumcolmax.cpp:15:9: error: 's' was not declared in this scope s=0; ^ sumcolmax.cpp:16:14: error: 'i' was not declared in this scope for (i=1; i<=n; i++) ^ sumcolmax.cpp:26:12: error: 'i' was not declared in this scope g << a[i][a] <<" "; ^
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ă.