#658
SumaLinii
Se dă o matrice cu n
linii și m
coloane și elemente numere naturale. Să se determine suma elementelor de pe fiecare linie.
Problema | SumaLinii | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50137171 | Utilizator | |
Fișier | sumalinii.cpp | Dimensiune | 286 B |
Data încărcării | 28 Martie 2024, 11:25 | Scor / rezultat | Eroare de compilare |
sumalinii.cpp:8:1: error: stray '\357' in program for(int j= 1;j<=m; ^ sumalinii.cpp:8:1: error: stray '\274' in program sumalinii.cpp:8:1: error: stray '\210' in program sumalinii.cpp:8:1: error: stray '\357' in program sumalinii.cpp:8:1: error: stray '\274' in program sumalinii.cpp:8:1: error: stray '\233' in program sumalinii.cpp:10:1: error: stray '\302' in program cin » alilljl; ^ sumalinii.cpp:10:1: error: stray '\273' in program sumalinii.cpp:13:1: error: stray '\357' in program for(int j=1;j<=m; ^ sumalinii.cpp:13:1: error: stray '\274' in program sumalinii.cpp:13:1: error: stray '\210' in program sumalinii.cpp:13:1: error: stray '\357' in program sumalinii.cpp:13:1: error: stray '\274' in program sumalinii.cpp:13:1: error: stray '\233' in program sumalinii.cpp:18:1: error: stray '\357' in program } ^ sumalinii.cpp:18:1: error: stray '\275' in program sumalinii.cpp:18:1: error: stray '\235' in program sumalinii.cpp:4:16: error: expected initializer before '|' token int n,m, al1051|1051; ^ sumalinii.cpp:6:1: error: expected initializer before 'cin' cin > n >> m; ^ sumalinii.cpp:7:1: error: expected unqualified-id before 'for' for(int i=1; i <=n; ++i) ^ sumalinii.cpp:7:14: error: 'i' does not name a type for(int i=1; i <=n; ++i) ^ sumalinii.cpp:7:21: error: expected unqualified-id before '++' token for(int i=1; i <=n; ++i) ^ sumalinii.cpp:8:16: error: 'j' does not name a type for(int j= 1;j<=m; ^ sumalinii.cpp:11:1: error: expected unqualified-id before 'for' for(int i = 1; i =n; ++i) ^ sumalinii.cpp:11:16: error: 'i' does not name a type for(int i = 1; i =n; ++i) ^ sumalinii.cpp:11:22: error: expected unqualified-id before '++' token for(int i = 1; i =n; ++i) ^ sumalinii.cpp:13:1: error: expected unqualified-id before 'for' for(int j=1;j<=m; ^ sumalinii.cpp:13:15: error: 'j' does not name a type for(int j=1;j<=m; ^ sumalinii.cpp:16:1: error: 'cout' does not name a type cout <<s<< ^ sumalinii.cpp:19:1: error: expected unqualified-id before 'return' return 0; ^ sumalinii.cpp:20:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumaLinii 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ă.