#97
Anagrame
Să se scrie un program care verifică dacă două cuvinte date sunt anagrame.
Problema | Anagrame | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21065528 | Utilizator | |
Fișier | anagrame.cpp | Dimensiune | 363 B |
Data încărcării | 19 Februarie 2020, 08:44 | Scor / rezultat | Eroare de compilare |
anagrame.cpp: In function 'int main()': anagrame.cpp:7:3: error: 'cin' was not declared in this scope { cin>>A; ^ anagrame.cpp:9:15: error: 'strlen' was not declared in this scope if(strlen (A)!=strlen (B)) ^ anagrame.cpp:11:16: error: 'strlen' was not declared in this scope n=strlen(A); ^ anagrame.cpp:13:6: error: 'p' was not declared in this scope { p=strchr(B,A[i]); ^ anagrame.cpp:13:21: error: 'strchr' was not declared in this scope { p=strchr(B,A[i]); ^ anagrame.cpp:15:22: error: 'strcpy' was not declared in this scope { strcpy(aux,p+1); ^ anagrame.cpp:21:4: error: 'cout' was not declared in this scope cout<<1; ^ anagrame.cpp:23:3: error: 'cout' was not declared in this scope cout<<0; ^ anagrame.cpp:24:12: error: expected ';' before '}' token return 0} ^ anagrame.cpp:24:12: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Anagrame 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ă.