#3165
MatrDivImp1
Se consideră o matrice cu m
linii și n
coloane, numere naturale. Folosind metoda Divide et Impera, determinați suma numerelor pare din matrice.
Problema | MatrDivImp1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #36432793 | Utilizator | |
Fișier | matrdivimp1.cpp | Dimensiune | 917 B |
Data încărcării | 02 Mai 2022, 08:21 | Scor / rezultat | Eroare de compilare |
matrdivimp1.cpp:5:29: error: 'ls' has not been declared int nrpare(int a[101][101], ls, ld, cs, cd) ^ matrdivimp1.cpp:5:33: error: 'ld' has not been declared int nrpare(int a[101][101], ls, ld, cs, cd) ^ matrdivimp1.cpp:5:37: error: 'cs' has not been declared int nrpare(int a[101][101], ls, ld, cs, cd) ^ matrdivimp1.cpp:5:41: error: 'cd' has not been declared int nrpare(int a[101][101], ls, ld, cs, cd) ^ matrdivimp1.cpp: In function 'int nrpare(int (*)[101], int, int, int, int)': matrdivimp1.cpp:7:8: error: 'ls' was not declared in this scope if(ls == ld && cs == cd) ^ matrdivimp1.cpp:7:14: error: 'ld' was not declared in this scope if(ls == ld && cs == cd) ^ matrdivimp1.cpp:7:20: error: 'cs' was not declared in this scope if(ls == ld && cs == cd) ^ matrdivimp1.cpp:7:26: error: 'cd' was not declared in this scope if(ls == ld && cs == cd) ^ matrdivimp1.cpp:23:20: error: 'b' was not declared in this scope return a + b; ^ matrdivimp1.cpp:24:9: error: 'else' without a previous 'if' else ^ matrdivimp1.cpp:31:16: error: 'c' was not declared in this scope return c + d; ^ matrdivimp1.cpp:31:20: error: 'd' was not declared in this scope return c + d; ^ matrdivimp1.cpp:34:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MatrDivImp1 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ă.