#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #37884212 | Utilizator | |
Fișier | caractere.cpp | Dimensiune | 426 B |
Data încărcării | 23 Septembrie 2022, 11:24 | 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:17:5: error: expected ';' after class definition } ^ caractere.cpp: In static member function 'static void p22_1335::Program::Main(int*)': caractere.cpp:13:13: error: 'string' was not declared in this scope string a = Console.ReadLine(), b = Console.ReadLine(); ^ caractere.cpp:13:20: error: expected ';' before 'a' string a = Console.ReadLine(), b = Console.ReadLine(); ^ caractere.cpp:14:33: error: 'a' was not declared in this scope for (int i = 0; i < a.Length; i++) ^ caractere.cpp:15:21: error: 'b' was not declared in this scope if (b.IndexOf(a[i]) != -1) Console.Write(a[i]); ^ caractere.cpp:15:44: error: 'Console' was not declared in this scope if (b.IndexOf(a[i]) != -1) Console.Write(a[i]); ^
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ă.