#4021
tablou1
Generaţi un tablou bidimensional cu proprietăţile:
N
linii şi N
coloane;S
;ONI 2001, clasa a IX-a
Problema | tablou1 | Operații I/O |
tablou.in /tablou.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #51193098 | Utilizator | |
Fișier | tablou1.cpp | Dimensiune | 381 B |
Data încărcării | 29 Mai 2024, 12:50 | Scor / rezultat | Eroare de compilare |
tablou1.cpp:3:16: error: variable 'std::ifstream filein' has initializer but incomplete type ifstream filein("tablou.in"); ^ tablou1.cpp:4:17: error: variable 'std::ofstream fileout' has initializer but incomplete type ofstream fileout("tablou.out"); ^ tablou1.cpp: In function 'int main()': tablou1.cpp:7:9: error: 'n' was not declared in this scope filein>>n>>S; ^ tablou1.cpp:7:12: error: 'S' was not declared in this scope filein>>n>>S; ^ tablou1.cpp:8:5: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ tablou1.cpp:9:5: error: 'j' was not declared in this scope for(j=1; j<=n; j++) ^ tablou1.cpp:10:9: error: 'a' was not declared in this scope filein>>a[i][j]; ^ tablou1.cpp:12:5: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ tablou1.cpp:13:5: error: 'j' was not declared in this scope for(j=1; j<=n; j++) ^ tablou1.cpp:14:1: error: 'S1' was not declared in this scope S1=S1+a[i][j]; ^ tablou1.cpp:14:7: error: 'a' was not declared in this scope S1=S1+a[i][j]; ^ tablou1.cpp:16:4: error: 'S1' was not declared in this scope if(S1==S && S1>=n){ ^ tablou1.cpp:17:5: error: 'i' was not declared in this scope for(i=1; i<=n; i++){ ^ tablou1.cpp:18:5: error: 'j' was not declared in this scope for(j=1; j<=n; j++) ^ tablou1.cpp:19:10: error: 'a' was not declared in this scope fileout<<a[i][j]; ^ tablou1.cpp:25:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema tablou1 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ă.