#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 | #58110031 | Utilizator | |
Fișier | sumcolmax.cpp | Dimensiune | 556 B |
Data încărcării | 14 Mai 2025, 15:48 | Scor / rezultat | Eroare de compilare |
sumcolmax.cpp:4:15: error: 'sumcolmax' was not declared in this scope ifstream fcin(sumcolmax.in) ^ sumcolmax.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream fcout(sumcolmax.out) ^ sumcolmax.cpp: In function 'int main()': sumcolmax.cpp:9:10: error: 'n' was not declared in this scope cin>>n>>m; ^ sumcolmax.cpp:9:13: error: 'm' was not declared in this scope cin>>n>>m; ^ sumcolmax.cpp:10:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ sumcolmax.cpp:11:13: error: 'j' was not declared in this scope for(j=1;j<=m;j++) ^ sumcolmax.cpp:12:15: error: 'A' was not declared in this scope fcin>>A[i][j]; ^ sumcolmax.cpp:13:9: 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:13: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ sumcolmax.cpp:17:17: error: 'A' was not declared in this scope s=s+A[i][j]; ^ sumcolmax.cpp:18:9: error: 'v' was not declared in this scope v[j]=s; ^ sumcolmax.cpp:20:5: error: 'Max' was not declared in this scope Max=v[1]; ^ sumcolmax.cpp:20:9: error: 'v' was not declared in this scope Max=v[1]; ^ sumcolmax.cpp:21:9: error: 'j' was not declared in this scope for(j=2;j<=m;j++) ^ sumcolmax.cpp:23:5: error: 'c' was not declared in this scope c=j; ^ sumcolmax.cpp:25:12: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ sumcolmax.cpp:26:13: error: 'fcout' was not declared in this scope fcout<<A[i][c]<<" "; ^ sumcolmax.cpp:26:20: error: 'A' was not declared in this scope fcout<<A[i][c]<<" "; ^ sumcolmax.cpp:26:25: error: 'c' was not declared in this scope fcout<<A[i][c]<<" "; ^
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ă.