#1335
Caractere
Se dau 2
șiruri de caractere. Sa se afișeze toate caracterele primului șir ce se găsesc și în al doilea.
Problema | Caractere | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #37884320 | Utilizator | |
Fișier | caractere.cpp | Dimensiune | 515 B |
Data încărcării | 23 Septembrie 2022, 11:26 | Scor / rezultat | Eroare de compilare |
caractere.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ caractere.cpp:1:7: error: 'System' has not been declared caractere.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ caractere.cpp:2:7: error: 'System' has not been declared caractere.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ caractere.cpp:2:13: error: expected unqualified-id before '.' token caractere.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ caractere.cpp:3:7: error: 'System' has not been declared caractere.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ caractere.cpp:3:13: error: expected unqualified-id before '.' token caractere.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ caractere.cpp:4:7: error: 'System' has not been declared caractere.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ caractere.cpp:4:13: error: expected unqualified-id before '.' token caractere.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ caractere.cpp:5:7: error: 'System' has not been declared caractere.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ caractere.cpp:5:13: error: expected unqualified-id before '.' token caractere.cpp:11:26: error: 'string' has not been declared static void Main(string[] args) ^ caractere.cpp:11:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ caractere.cpp:21:5: error: expected ';' after class definition } ^ caractere.cpp: In static member function 'static void p21_pb1335::Program::Main(int*)': caractere.cpp:13:13: error: 'string' was not declared in this scope string a, b; ^ caractere.cpp:13:20: error: expected ';' before 'a' string a, b; ^ caractere.cpp:14:13: error: 'a' was not declared in this scope a = Console.ReadLine(); ^ caractere.cpp:14:17: error: 'Console' was not declared in this scope a = Console.ReadLine(); ^ caractere.cpp:15:13: error: 'b' was not declared in this scope b = Console.ReadLine(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Caractere 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ă.