#2584
InsertInvers
Se dă un șir de caractere care conține cuvinte formate doar din litere mici și mari ale alfabetului englez, separate printr-un spațiu. Să se afișeze cuvintele din șir, fiecare fiind urmat de inversul său. Cuvintele afișate sunt separate printr-un spațiu.
Problema | InsertInvers | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #38036771 | Utilizator | |
Fișier | insertinvers.cpp | Dimensiune | 752 B |
Data încărcării | 28 Septembrie 2022, 08:13 | Scor / rezultat | Eroare de compilare |
insertinvers.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ insertinvers.cpp:1:7: error: 'System' has not been declared insertinvers.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ insertinvers.cpp:2:7: error: 'System' has not been declared insertinvers.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ insertinvers.cpp:2:13: error: expected unqualified-id before '.' token insertinvers.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ insertinvers.cpp:3:7: error: 'System' has not been declared insertinvers.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ insertinvers.cpp:3:13: error: expected unqualified-id before '.' token insertinvers.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ insertinvers.cpp:4:7: error: 'System' has not been declared insertinvers.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ insertinvers.cpp:4:13: error: expected unqualified-id before '.' token insertinvers.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ insertinvers.cpp:5:7: error: 'System' has not been declared insertinvers.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ insertinvers.cpp:5:13: error: expected unqualified-id before '.' token insertinvers.cpp:11:26: error: 'string' has not been declared static void Main(string[] args) ^ insertinvers.cpp:11:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ insertinvers.cpp:28:5: error: expected ';' after class definition } ^ insertinvers.cpp: In static member function 'static void p28_test::Program::Main(int*)': insertinvers.cpp:14:13: error: 'string' was not declared in this scope string str; ^ insertinvers.cpp:14:20: error: expected ';' before 'str' string str; ^ insertinvers.cpp:15:20: error: expected primary-expression before ']' token string[] cuv; ^ insertinvers.cpp:15:22: error: expected ';' before 'cuv' string[] cuv; ^ insertinvers.cpp:16:13: error: 'str' was not declared in this scope str = Console.ReadLine(); ^ insertinvers.cpp:16:19: error: 'Console' was not declared in this scope str = Console.ReadLine(); ^ insertinvers.cpp:17:13: error: 'cuv' was not declared in this scope cuv = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); ^ insertinvers.cpp:17:38: error: expected primary-expression before ']' token cuv = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); ^ insertinvers.cpp:17:49: error: 'StringSplitOptions' was not declared in this scope cuv = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); ^ insertinvers.cpp:18:29: error: expected ')' before 'e' foreach (string e in cuv) ^ insertinvers.cpp:18:37: error: 'foreach' was not declared in this scope foreach (string e in cuv) ^ insertinvers.cpp:19:13: error: expected ';' before '{' token { ^ insertinvers.cpp:13:17: warning: unused variable 'i' [-Wunused-variable] int i; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InsertInvers 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ă.