#3165
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 | #63893501 | Utilizator | |
| Fișier | matrdivimp1.cpp | Dimensiune | 8.03 KB |
| Data încărcării | 25 Martie 2026, 08:47 | Scor/rezultat | Eroare de compilare |
matrdivimp1.cpp:39:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:39:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:39:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:40:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:60:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:74:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:74:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:74:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:75:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:95:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:109:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:109:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:109:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:110:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:130:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:144:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:144:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:144:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:145:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:165:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:179:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:179:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:179:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:180:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:200:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:214:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:214:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:214:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:215:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:235:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:249:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:249:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:249:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:250:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:270:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:284:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:284:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:284:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:285:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:305:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:319:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:319:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:319:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:320:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:340:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:354:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:354:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:354:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:355:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:375:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^ matrdivimp1.cpp: At global scope: matrdivimp1.cpp:389:15: error: redefinition of 'int v [101][101]' int v[101][101],n,m; ^ matrdivimp1.cpp:4:5: error: 'int v [101][101]' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:389:17: error: redefinition of 'int n' int v[101][101],n,m; ^ matrdivimp1.cpp:4:17: error: 'int n' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp:389:19: error: redefinition of 'int m' int v[101][101],n,m; ^ matrdivimp1.cpp:4:19: error: 'int m' previously declared here int v[101][101],n,m; ^ matrdivimp1.cpp: In function 'int matr(int, int, int, int)': matrdivimp1.cpp:390:5: error: redefinition of 'int matr(int, int, int, int)' int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp:5:5: error: 'int matr(int, int, int, int)' previously defined here int matr(int is, int js, int id, int jd){ ^ matrdivimp1.cpp: In function 'int main()': matrdivimp1.cpp:410:5: error: redefinition of 'int main()' int main() ^ matrdivimp1.cpp:25:5: error: 'int main()' previously defined here int main() ^
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ă.