#222
MinCols
Se dă o matrice cu elemente numere întregi. Să se determine, pentru fiecare coloană, valoarea minimă de pe coloana respectivă.
Variante Bacalaureat 2009
Problema | MinCols | Operații I/O |
mincols.in /mincols.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54284464 | Utilizator | |
Fișier | mincols.cpp | Dimensiune | 479 B |
Data încărcării | 24 Noiembrie 2024, 19:11 | Scor / rezultat | Eroare de compilare |
mincols.cpp:5:15: warning: missing terminating " character [enabled by default] ofstream fout("mincols.out); ^ mincols.cpp:5:1: error: missing terminating " character ofstream fout("mincols.out); ^ mincols.cpp:6:17: error: 'i' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:19: error: 'n' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:21: error: 'm' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:23: error: 'j' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:25: error: 'I' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:29: error: 'k' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:31: error: 'ok' has not been declared int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:6:35: error: expected ')' before ';' token int v[101][101],i,n,m,j,I=0,k,ok=1; ^ mincols.cpp:5:10: error: default argument missing for parameter 7 of 'std::ofstream fout(int (*)[101], int, int, int, int, int, int, int)' ofstream fout("mincols.out); ^ mincols.cpp: In function 'int main()': mincols.cpp:10:10: error: 'n' was not declared in this scope fin>>n; ^ mincols.cpp:11:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ mincols.cpp:12:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ mincols.cpp:13:14: error: 'v' was not declared in this scope fin>>v[i][j]; ^ mincols.cpp:14:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++){ ^ mincols.cpp:16:14: error: 'i' was not declared in this scope for(i=1;i<=n;i++){ ^ mincols.cpp:17:15: error: 'v' was not declared in this scope if(v[i][j]<mini) mini=v[i][j]; ^ mincols.cpp:19:16: error: invalid operands of types 'std::ofstream(int (*)[101], int, int, int, int, int, int, int) {aka std::basic_ofstream<char>(int (*)[101], int, int, int, int, int, int, int)}' and 'int' to binary 'operator<<' fout<<mini<<" "; ^ mincols.cpp:8:9: warning: unused variable 'a' [-Wunused-variable] int a[101]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MinCols 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ă.