#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53557793 | Utilizator | |
Fișier | suma_n.cpp | Dimensiune | 1.71 KB |
Data încărcării | 05 Noiembrie 2024, 09:34 | 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.ComponentModel; ^ suma_n.cpp:3:7: error: 'System' has not been declared suma_n.cpp:3:13: error: expected ';' before '.' token using System.ComponentModel; ^ 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.Data; ^ suma_n.cpp:4:7: error: 'System' has not been declared suma_n.cpp:4:13: error: expected ';' before '.' token using System.Data; ^ 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.Drawing; ^ suma_n.cpp:5:7: error: 'System' has not been declared suma_n.cpp:5:13: error: expected ';' before '.' token using System.Drawing; ^ suma_n.cpp:5:13: error: expected unqualified-id before '.' token suma_n.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ suma_n.cpp:6:7: error: 'System' has not been declared suma_n.cpp:6:13: error: expected ';' before '.' token using System.Linq; ^ suma_n.cpp:6:13: error: expected unqualified-id before '.' token suma_n.cpp:7:7: error: expected nested-name-specifier before 'System' using System.Text; ^ suma_n.cpp:7:7: error: 'System' has not been declared suma_n.cpp:7:13: error: expected ';' before '.' token using System.Text; ^ suma_n.cpp:7:13: error: expected unqualified-id before '.' token suma_n.cpp:8:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ suma_n.cpp:8:7: error: 'System' has not been declared suma_n.cpp:8:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ suma_n.cpp:8:13: error: expected unqualified-id before '.' token suma_n.cpp:9:7: error: expected nested-name-specifier before 'System' using System.Windows.Forms; ^ suma_n.cpp:9:7: error: 'System' has not been declared suma_n.cpp:9:13: error: expected ';' before '.' token using System.Windows.Forms; ^ suma_n.cpp:9:13: error: expected unqualified-id before '.' token suma_n.cpp:13:5: error: expected unqualified-id before 'public' public partial class Form1 : Form ^ suma_n.cpp:68: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ă.