#767
SumaPare2
Se dă o matrice cu n
linii şi m
coloane şi elemente numere naturale. Determinați suma valorilor pare din matrice.
Problema | SumaPare2 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22924859 | Utilizator | |
Fișier | sumapare2.cpp | Dimensiune | 434 B |
Data încărcării | 13 Mai 2020, 00:31 | Scor / rezultat | Eroare de compilare |
sumapare2.cpp:4:1: error: stray '\302' in program int v[101][101], i, j, n, m; ^ sumapare2.cpp:4:1: error: stray '\240' in program sumapare2.cpp:4:1: error: stray '\302' in program sumapare2.cpp:4:1: error: stray '\240' in program sumapare2.cpp:4:1: error: stray '\302' in program sumapare2.cpp:4:1: error: stray '\240' in program sumapare2.cpp:5:1: error: stray '\302' in program int s=0; ^ sumapare2.cpp:5:1: error: stray '\240' in program sumapare2.cpp:5:1: error: stray '\302' in program sumapare2.cpp:5:1: error: stray '\240' in program sumapare2.cpp:6:1: error: stray '\302' in program cin>>n; ^ sumapare2.cpp:6:1: error: stray '\240' in program sumapare2.cpp:6:1: error: stray '\302' in program sumapare2.cpp:6:1: error: stray '\240' in program sumapare2.cpp:6:1: error: stray '\302' in program sumapare2.cpp:6:1: error: stray '\240' in program sumapare2.cpp:6:1: error: stray '\302' in program sumapare2.cpp:6:1: error: stray '\240' in program sumapare2.cpp:6:1: error: stray '\302' in program sumapare2.cpp:6:1: error: stray '\240' in program sumapare2.cpp:7:1: error: stray '\302' in program cin>>m; ^ sumapare2.cpp:7:1: error: stray '\240' in program sumapare2.cpp:7:1: error: stray '\302' in program sumapare2.cpp:7:1: error: stray '\240' in program sumapare2.cpp:8:1: error: stray '\302' in program for(i=1;i<=n;i++){ ^ sumapare2.cpp:8:1: error: stray '\240' in program sumapare2.cpp:8:1: error: stray '\302' in program sumapare2.cpp:8:1: error: stray '\240' in program sumapare2.cpp:9:1: error: stray '\302' in program for(j=1;j<=m;j++){ ^ sumapare2.cpp:9:1: error: stray '\240' in program sumapare2.cpp:9:1: error: stray '\302' in program sumapare2.cpp:9:1: error: stray '\240' in program sumapare2.cpp:9:1: error: stray '\302' in program sumapare2.cpp:9:1: error: stray '\240' in program sumapare2.cpp:9:1: error: stray '\302' in program sumapare2.cpp:9:1: error: stray '\240' in program sumapare2.cpp:9:1: error: stray '\302' in program sumapare2.cpp:9:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program cin>>v[i][j]; ^ sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:10:1: error: stray '\302' in program sumapare2.cpp:10:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program if(v[i][j]%2==0){ ^ sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:11:1: error: stray '\302' in program sumapare2.cpp:11:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program s=s+v[i][j]; ^ sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:12:1: error: stray '\302' in program sumapare2.cpp:12:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program } ^ sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:13:1: error: stray '\302' in program sumapare2.cpp:13:1: error: stray '\240' in program sumapare2.cpp:14:1: error: stray '\302' in program } ^ sumapare2.cpp:14:1: error: stray '\240' in program sumapare2.cpp:14:1: error: stray '\302' in program sumapare2.cpp:14:1: error: stray '\240' in program sumapare2.cpp:14:1: error: stray '\302' in program sumapare2.cpp:14:1: error: stray '\240' in program sumapare2.cpp:14:1: error: stray '\302' in program sumapare2.cpp:14:1: error: stray '\240' in program sumapare2.cpp:14:1: error: stray '\302' in program sumapare2.cpp:14:1: error: stray '\240' in program sumapare2.cpp:15:1: error: stray '\302' in program } ^ sumapare2.cpp:15:1: error: stray '\240' in program sumapare2.cpp:15:1: error: stray '\302' in program sumapare2.cpp:15:1: error: stray '\240' in program sumapare2.cpp:15:1: error: stray '\302' in program sumapare2.cpp:15:1: error: stray '\240' in program sumapare2.cpp:16:1: error: stray '\302' in program cout<<s; ^ sumapare2.cpp:16:1: error: stray '\240' in program sumapare2.cpp:16:1: error: stray '\302' in program sumapare2.cpp:16:1: error: stray '\240' in program sumapare2.cpp:16:1: error: stray '\302' in program sumapare2.cpp:16:1: error: stray '\240' in program sumapare2.cpp:17:1: error: stray '\302' in program return 0; ^ sumapare2.cpp:17:1: error: stray '\240' in program sumapare2.cpp:17:1: error: stray '\302' in program sumapare2.cpp:17:1: error: stray '\240' in program sumapare2.cpp:18:1: error: stray '\302' in program } ^ sumapare2.cpp:18:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumaPare2 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ă.