#314
ColZero
Se consideră tabloul bidimensional cu m
linii şi n
coloane şi elemente numere naturale. Să se determine numărul de coloane care conţin doar elemente egale cu 0
.
Problema | ColZero | Operații I/O |
colzero.in /colzero.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53029521 | Utilizator | |
Fișier | colzero.cpp | Dimensiune | 489 B |
Data încărcării | 15 Octombrie 2024, 21:59 | Scor / rezultat | Eroare de compilare |
colzero.cpp:3:14: error: 'colzero' was not declared in this scope ifstream fin(colzero.in) ^ colzero.cpp:4:1: error: expected ',' or ';' before 'ofstream' ofstream(colzero.out) ^ colzero.cpp: In function 'int main()': colzero.cpp:8:8: error: 'm' was not declared in this scope fin >> m >> n; ^ colzero.cpp:8:13: error: 'n' was not declared in this scope fin >> m >> n; ^ colzero.cpp:9:10: error: 'i' was not declared in this scope for( i=1;i<=m;++i) ^ colzero.cpp:10:14: error: 'j' was not declared in this scope for( j=1;j<=n;++j) ^ colzero.cpp:11:16: error: 'a' was not declared in this scope fin >> a[i][j]; ^ colzero.cpp:12:14: error: 'j' was not declared in this scope for( j=1;j<=n;++j) ^ colzero.cpp:13:10: error: 'ok' was not declared in this scope {ok=1; ^ colzero.cpp:14:14: error: 'i' was not declared in this scope for( i=1;i<=m;++i) ^ colzero.cpp:15:13: error: 'a' was not declared in this scope {if(a[i][j]!=0) ^ colzero.cpp:21:9: error: 'c' was not declared in this scope c++; ^ colzero.cpp:23:9: error: 'fout' was not declared in this scope fout>>c; ^ colzero.cpp:23:15: error: 'c' was not declared in this scope fout>>c; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ColZero 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ă.