#1229
Pentru o matrice pătratică de dimensiune 2n, să se determine regula de parcurgere pe baza a 3 exemple și să se aplice.
| Problema | Matrice_Div_Et_Imp | Operații I/O |
matrice_div_et_imp.in/matrice_div_et_imp.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 22 MB
/
Stivă 0.2 MB
|
| Id soluție | #62457112 | Utilizator | |
| Fișier | matrice_div_et_imp.cpp | Dimensiune | 1.67 KB |
| Data încărcării | 21 Ianuarie 2026, 23:35 | Scor/rezultat | Eroare de compilare |
matrice_div_et_imp.cpp: In function 'int matrice_div_et_imp(int, int, int)': matrice_div_et_imp.cpp:21:45: error: a function-definition is not allowed here before '{' token int matrice_div_et_imp(int x, int y, int l) { ^ matrice_div_et_imp.cpp:13:9: warning: unused variable 'h' [-Wunused-variable] int h=l/2; ^ matrice_div_et_imp.cpp:17:11: warning: unused variable 'a' [-Wunused-variable] long long a[512][512]; // 2*9=512 ^ matrice_div_et_imp.cpp:79:1: error: expected '}' at end of input } ^ matrice_div_et_imp.cpp:79:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice_Div_Et_Imp 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ă.