#2
suma_n
Să se scrie un program care citeşte de la tastatură un şir de numere naturale şi determină suma lor.
Problema | suma_n | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #32556871 | Utilizator | |
Fișier | suma_n.cpp | Dimensiune | 2.77 KB |
Data încărcării | 19 Noiembrie 2021, 12:05 | Scor / rezultat | Eroare de compilare |
suma_n.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ suma_n.cpp:1:7: error: 'System' has not been declared suma_n.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ suma_n.cpp:2:7: error: 'System' has not been declared suma_n.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ suma_n.cpp:2:13: error: expected unqualified-id before '.' token suma_n.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ suma_n.cpp:3:7: error: 'System' has not been declared suma_n.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ suma_n.cpp:3:13: error: expected unqualified-id before '.' token suma_n.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ suma_n.cpp:4:7: error: 'System' has not been declared suma_n.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ suma_n.cpp:4:13: error: expected unqualified-id before '.' token suma_n.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ suma_n.cpp:5:7: error: 'System' has not been declared suma_n.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ suma_n.cpp:5:13: error: expected unqualified-id before '.' token suma_n.cpp:9:5: error: expected unqualified-id before 'public' public class Complexe ^ suma_n.cpp:109:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema suma_n 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ă.