#298
Se dă un şir format din n elemente, numere naturale. Calculaţi suma elementelor din secvenţa determinată de primul şi ultimul element prim.
| Problema | SumSec | Operații I/O |
sumsec.in/sumsec.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #51313706 | Utilizator | |
| Fișier | sumsec.cpp | Dimensiune | 1.61 KB |
| Data încărcării | 06 Iunie 2024, 12:50 | Scor/rezultat | Eroare de compilare |
sumsec.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ sumsec.cpp:1:7: error: 'System' has not been declared sumsec.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ sumsec.cpp:2:7: error: 'System' has not been declared sumsec.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ sumsec.cpp:2:13: error: expected unqualified-id before '.' token sumsec.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ sumsec.cpp:3:7: error: 'System' has not been declared sumsec.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ sumsec.cpp:3:13: error: expected unqualified-id before '.' token sumsec.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ sumsec.cpp:4:7: error: 'System' has not been declared sumsec.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ sumsec.cpp:4:13: error: expected unqualified-id before '.' token sumsec.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ sumsec.cpp:5:7: error: 'System' has not been declared sumsec.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ sumsec.cpp:5:13: error: expected unqualified-id before '.' token sumsec.cpp:6:7: error: expected nested-name-specifier before 'System' using System.IO;///pt operatii cu fisiere ^ sumsec.cpp:6:7: error: 'System' has not been declared sumsec.cpp:6:13: error: expected ';' before '.' token using System.IO;///pt operatii cu fisiere ^ sumsec.cpp:6:13: error: expected unqualified-id before '.' token sumsec.cpp:10:5: error: 'internal' does not name a type internal class Program ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumSec 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ă.