#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 | #50323180 | Utilizator | |
Fișier | caractere.cpp | Dimensiune | 300 B |
Data încărcării | 04 Aprilie 2024, 16:12 | Scor / rezultat | Eroare de compilare |
caractere.cpp:1:1: error: 'include' does not name a type include <iostream> ^ caractere.cpp: In function 'int main()': caractere.cpp:6:5: error: expected initializer before 'cin' cin>>n>>m; ^ caractere.cpp:7:19: error: 'n' was not declared in this scope for(int i=0;i<n;i++) ^ caractere.cpp:8:9: error: 'cin' was not declared in this scope cin>>a[i]; ^ caractere.cpp:9:19: error: 'm' was not declared in this scope for(int j=0;j<m;j++) ^ caractere.cpp:10:9: error: 'cin' was not declared in this scope cin>>b[j]; ^ caractere.cpp:10:14: error: 'b' was not declared in this scope cin>>b[j]; ^ caractere.cpp:11:9: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^ caractere.cpp:11:15: error: 'n' was not declared in this scope for(i=0;i<n;i++) ^ caractere.cpp:12:13: error: 'j' was not declared in this scope for(j=0;j<m;j++) ^ caractere.cpp:12:19: error: 'm' was not declared in this scope for(j=0;j<m;j++) ^ caractere.cpp:13:18: error: 'b' was not declared in this scope if(a[i]==b[j]) ^ caractere.cpp:14:9: error: 'cout' was not declared in this scope cout<<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ă.