#1
sum
Să se scrie un program care citeşte din fişier două numere întregi şi determină suma lor.
Problema | sum | Operații I/O |
sum.in /sum.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47174159 | Utilizator | |
Fișier | sum.cpp | Dimensiune | 7.89 KB |
Data încărcării | 05 Decembrie 2023, 12:58 | Scor / rezultat | Eroare de compilare |
sum.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ sum.cpp:1:7: error: 'System' has not been declared sum.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ sum.cpp:2:7: error: 'System' has not been declared sum.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ sum.cpp:2:13: error: expected unqualified-id before '.' token sum.cpp:3:7: error: expected nested-name-specifier before 'System' using System.ComponentModel; ^ sum.cpp:3:7: error: 'System' has not been declared sum.cpp:3:13: error: expected ';' before '.' token using System.ComponentModel; ^ sum.cpp:3:13: error: expected unqualified-id before '.' token sum.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Data; ^ sum.cpp:4:7: error: 'System' has not been declared sum.cpp:4:13: error: expected ';' before '.' token using System.Data; ^ sum.cpp:4:13: error: expected unqualified-id before '.' token sum.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Drawing; ^ sum.cpp:5:7: error: 'System' has not been declared sum.cpp:5:13: error: expected ';' before '.' token using System.Drawing; ^ sum.cpp:5:13: error: expected unqualified-id before '.' token sum.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ sum.cpp:6:7: error: 'System' has not been declared sum.cpp:6:13: error: expected ';' before '.' token using System.Linq; ^ sum.cpp:6:13: error: expected unqualified-id before '.' token sum.cpp:7:7: error: expected nested-name-specifier before 'System' using System.Text; ^ sum.cpp:7:7: error: 'System' has not been declared sum.cpp:7:13: error: expected ';' before '.' token using System.Text; ^ sum.cpp:7:13: error: expected unqualified-id before '.' token sum.cpp:8:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ sum.cpp:8:7: error: 'System' has not been declared sum.cpp:8:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ sum.cpp:8:13: error: expected unqualified-id before '.' token sum.cpp:9:7: error: expected nested-name-specifier before 'System' using System.Windows.Forms; ^ sum.cpp:9:7: error: 'System' has not been declared sum.cpp:9:13: error: expected ';' before '.' token using System.Windows.Forms; ^ sum.cpp:9:13: error: expected unqualified-id before '.' token sum.cpp:10:7: error: expected nested-name-specifier before 'System' using System.IO; ^ sum.cpp:10:7: error: 'System' has not been declared sum.cpp:10:13: error: expected ';' before '.' token using System.IO; ^ sum.cpp:10:13: error: expected unqualified-id before '.' token sum.cpp:14:5: error: expected unqualified-id before 'public' public partial class Form1 : Form ^ sum.cpp:273:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sum 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ă.