#4382
Inlocuire5
Se citește un vector cu n
elemente, numere naturale. Să se înlocuiască fiecare element prim din vector cu 0
, apoi să se afișeze vectorul.
Problema | Inlocuire5 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50893357 | Utilizator | |
Fișier | inlocuire5.cs | Dimensiune | 2.52 KB |
Data încărcării | 13 Mai 2024, 09:32 | Scor / rezultat | Eroare de compilare |
Compilation failed: 20 error(s), 1 warnings inlocuire5.cs(20,40): error CS1525: Unexpected symbol \`System', expecting \`(' inlocuire5.cs(21,18): error CS1525: Unexpected symbol \`System', expecting \`(' inlocuire5.cs(22,18): error CS1525: Unexpected symbol \`System', expecting \`(' inlocuire5.cs(23,18): error CS1525: Unexpected symbol \`System', expecting \`(' inlocuire5.cs(24,18): error CS1525: Unexpected symbol \`System', expecting \`(' inlocuire5.cs(26,0): error CS1525: Unexpected symbol \`namespace' inlocuire5.cs(27,4): error CS1525: Unexpected symbol \`{' inlocuire5.cs(28,8): error CS1525: Unexpected symbol \`internal' inlocuire5.cs(29,8): error CS1525: Unexpected symbol \`{' inlocuire5.cs(30,12): error CS1525: Unexpected symbol \`public' inlocuire5.cs(30,35): error CS1525: Unexpected symbol \`(' inlocuire5.cs(41,12): error CS1525: Unexpected symbol \`static' inlocuire5.cs(41,20): error CS1547: Keyword \`void' cannot be used in this context inlocuire5.cs(41,28): error CS1525: Unexpected symbol \`(' inlocuire5.cs(44,21): error CS0136: A local variable named \`n' cannot be declared in this scope because it would give a different meaning to \`n', which is already used in a \`parent or current' scope to denote something else inlocuire5.cs(63,18): error CS1519: Unexpected symbol \`return' in class, struct, or interface member declaration inlocuire5.cs(65,15): error CS1525: Unexpected symbol \`void' inlocuire5.cs(65,32): error CS1514: Unexpected symbol \`[', expecting \`.' or \`{' inlocuire5.cs(65,32): warning CS0658: \`]' is invalid attribute target. All attributes in this attribute section will be ignored inlocuire5.cs(67,32): error CS1530: Keyword \`new' is not allowed on namespace elements inlocuire5.cs(67,35): error CS1525: Unexpected symbol \`StreamReader'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inlocuire5 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ă.