#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50137022 | Utilizator | |
Fișier | sumapare2.cpp | Dimensiune | 305 B |
Data încărcării | 28 Martie 2024, 11:21 | Scor / rezultat | Eroare de compilare |
sumapare2.cpp:1:21: warning: extra tokens at end of #include directive [enabled by default] #include <iostream> using namespace std; ^ sumapare2.cpp:6:1: error: stray '\357' in program for(int j=1;j<=m; ^ sumapare2.cpp:6:1: error: stray '\274' in program sumapare2.cpp:6:1: error: stray '\210' in program sumapare2.cpp:6:1: error: stray '\357' in program sumapare2.cpp:6:1: error: stray '\274' in program sumapare2.cpp:6:1: error: stray '\233' in program sumapare2.cpp:8:1: error: stray '\302' in program cin »> alilljl; ^ sumapare2.cpp:8:1: error: stray '\273' in program sumapare2.cpp:11:1: error: stray '\357' in program for(int j=1;j<=m; ^ sumapare2.cpp:11:1: error: stray '\274' in program sumapare2.cpp:11:1: error: stray '\210' in program sumapare2.cpp:11:1: error: stray '\357' in program sumapare2.cpp:11:1: error: stray '\274' in program sumapare2.cpp:11:1: error: stray '\233' in program sumapare2.cpp:12:1: error: stray '\357' in program ++j) ^ sumapare2.cpp:12:1: error: stray '\274' in program sumapare2.cpp:12:1: error: stray '\211' in program sumapare2.cpp:15:1: error: stray '\342' in program cout ‹s < endl; return 0; ^ sumapare2.cpp:15:1: error: stray '\200' in program sumapare2.cpp:15:1: error: stray '\271' in program sumapare2.cpp:2:18: error: expected initializer before '|' token int n,m, k,al1011|1011, v|1011; ^ sumapare2.cpp:4:1: error: expected initializer before 'cin' cin > n> m; ^ sumapare2.cpp:5:1: error: expected unqualified-id before 'for' for(int i =1; 1<=n; +ti) ^ sumapare2.cpp:5:15: error: expected unqualified-id before numeric constant for(int i =1; 1<=n; +ti) ^ sumapare2.cpp:5:21: error: expected unqualified-id before '+' token for(int i =1; 1<=n; +ti) ^ sumapare2.cpp:6:15: error: 'j' does not name a type for(int j=1;j<=m; ^ sumapare2.cpp:9:1: error: 'ints' does not name a type ints = 0; ^ sumapare2.cpp:10:1: error: expected unqualified-id before 'for' for(int i =1; i <=n; ++i) ^ sumapare2.cpp:10:15: error: 'i' does not name a type for(int i =1; i <=n; ++i) ^ sumapare2.cpp:10:22: error: expected unqualified-id before '++' token for(int i =1; i <=n; ++i) ^ sumapare2.cpp:11:15: error: 'j' does not name a type for(int j=1;j<=m; ^ sumapare2.cpp:15:1: error: 'cout' does not name a type cout ‹s < endl; return 0; ^ sumapare2.cpp:15:19: error: expected unqualified-id before 'return' cout ‹s < endl; return 0; ^
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ă.