#4383
Inlocuire6
Se citește un vector cu n
elemente, numere naturale. Să se înlocuiască ultimul element prim din vector cu 0
, apoi să se afișeze vectorul.
Problema | Inlocuire6 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50817474 | Utilizator | |
Fișier | inlocuire6.cpp | Dimensiune | 1.55 KB |
Data încărcării | 08 Mai 2024, 12:57 | Scor / rezultat | Eroare de compilare |
inlocuire6.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ inlocuire6.cpp:1:7: error: 'System' has not been declared inlocuire6.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ inlocuire6.cpp:2:7: error: 'System' has not been declared inlocuire6.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ inlocuire6.cpp:2:13: error: expected unqualified-id before '.' token inlocuire6.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ inlocuire6.cpp:3:7: error: 'System' has not been declared inlocuire6.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ inlocuire6.cpp:3:13: error: expected unqualified-id before '.' token inlocuire6.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Runtime.InteropServices; ^ inlocuire6.cpp:4:7: error: 'System' has not been declared inlocuire6.cpp:4:13: error: expected ';' before '.' token using System.Runtime.InteropServices; ^ inlocuire6.cpp:4:13: error: expected unqualified-id before '.' token inlocuire6.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Text; ^ inlocuire6.cpp:5:7: error: 'System' has not been declared inlocuire6.cpp:5:13: error: expected ';' before '.' token using System.Text; ^ inlocuire6.cpp:5:13: error: expected unqualified-id before '.' token inlocuire6.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ inlocuire6.cpp:6:7: error: 'System' has not been declared inlocuire6.cpp:6:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ inlocuire6.cpp:6:13: error: expected unqualified-id before '.' token inlocuire6.cpp:14:16: error: expected ':' before 'NR' public NR(int val) ^ inlocuire6.cpp:17:16: error: expected ':' before 'void' public void schimbval(int val) ^ inlocuire6.cpp:21:16: error: expected ':' before 'bool' public bool prim() ^ inlocuire6.cpp:34:16: error: expected ':' before 'void' public void afis() ^ inlocuire6.cpp: In member function 'void ConsoleApp2::NR::afis()': inlocuire6.cpp:35:11: error: 'Console' was not declared in this scope { Console.Write(n + " "); } ^ inlocuire6.cpp: At global scope: inlocuire6.cpp:39:14: error: expected initializer before 'class' internal class Program ^ inlocuire6.cpp:68:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inlocuire6 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ă.