#3155
anagrame4
Se citește de la tastatură un cuvânt s
format din cel mult 11 litere mici distincte. Să se genereze în ordine alfabetică și să se afișeze toate anagramele cuvântului s în care consoanele sunt puncte fixe.
Problema | anagrame4 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21513758 | Utilizator | |
Fișier | anagrame4.cpp | Dimensiune | 1003 B |
Data încărcării | 03 Martie 2020, 19:53 | Scor / rezultat | Eroare de compilare |
anagrame4.cpp:15:1: error: stray '\302' in program int i; ^ anagrame4.cpp:15:1: error: stray '\240' in program anagrame4.cpp:15:1: error: stray '\302' in program anagrame4.cpp:15:1: error: stray '\240' in program anagrame4.cpp:17:1: error: stray '\302' in program for(i=1;i<=k;i++) ^ anagrame4.cpp:17:1: error: stray '\240' in program anagrame4.cpp:17:1: error: stray '\302' in program anagrame4.cpp:17:1: error: stray '\240' in program anagrame4.cpp:19:1: error: stray '\302' in program cout<<s[st[i]]; ^ anagrame4.cpp:19:1: error: stray '\240' in program anagrame4.cpp:19:1: error: stray '\302' in program anagrame4.cpp:19:1: error: stray '\240' in program anagrame4.cpp:19:1: error: stray '\302' in program anagrame4.cpp:19:1: error: stray '\240' in program anagrame4.cpp:19:1: error: stray '\302' in program anagrame4.cpp:19:1: error: stray '\240' in program anagrame4.cpp:21:1: error: stray '\302' in program cout<<endl; ^ anagrame4.cpp:21:1: error: stray '\240' in program anagrame4.cpp:21:1: error: stray '\302' in program anagrame4.cpp:21:1: error: stray '\240' in program anagrame4.cpp:29:1: error: stray '\302' in program int ev,i; ^ anagrame4.cpp:29:1: error: stray '\240' in program anagrame4.cpp:29:1: error: stray '\302' in program anagrame4.cpp:29:1: error: stray '\240' in program anagrame4.cpp:31:1: error: stray '\302' in program ev=1; ^ anagrame4.cpp:31:1: error: stray '\240' in program anagrame4.cpp:31:1: error: stray '\302' in program anagrame4.cpp:31:1: error: stray '\240' in program anagrame4.cpp:33:1: error: stray '\302' in program for(i=1;i<=k-1;i++) ^ anagrame4.cpp:33:1: error: stray '\240' in program anagrame4.cpp:33:1: error: stray '\302' in program anagrame4.cpp:33:1: error: stray '\240' in program anagrame4.cpp:35:1: error: stray '\302' in program if(st[k]==st[i]) ^ anagrame4.cpp:35:1: error: stray '\240' in program anagrame4.cpp:35:1: error: stray '\302' in program anagrame4.cpp:35:1: error: stray '\240' in program anagrame4.cpp:35:1: error: stray '\302' in program anagrame4.cpp:35:1: error: stray '\240' in program anagrame4.cpp:35:1: error: stray '\302' in program anagrame4.cpp:35:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program ev=0; ^ anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:37:1: error: stray '\302' in program anagrame4.cpp:37:1: error: stray '\240' in program anagrame4.cpp:39:1: error: stray '\302' in program if(k==1||k==n) ^ anagrame4.cpp:39:1: error: stray '\240' in program anagrame4.cpp:39:1: error: stray '\302' in program anagrame4.cpp:39:1: error: stray '\240' in program anagrame4.cpp:41:1: error: stray '\302' in program {if(strchr(v,s[st[k]])==0) ^ anagrame4.cpp:41:1: error: stray '\240' in program anagrame4.cpp:41:1: error: stray '\302' in program anagrame4.cpp:41:1: error: stray '\240' in program anagrame4.cpp:43:1: error: stray '\302' in program ev=0;} ^ anagrame4.cpp:43:1: error: stray '\240' in program anagrame4.cpp:43:1: error: stray '\302' in program anagrame4.cpp:43:1: error: stray '\240' in program anagrame4.cpp:43:1: error: stray '\302' in program anagrame4.cpp:43:1: error: stray '\240' in program anagrame4.cpp:45:1: error: stray '\302' in program return ev; ^ anagrame4.cpp:45:1: error: stray '\240' in program anagrame4.cpp:45:1: error: stray '\302' in program anagrame4.cpp:45:1: error: stray '\240' in program anagrame4.cpp:53:1: error: stray '\302' in program int i; ^ anagrame4.cpp:53:1: error: stray '\240' in program anagrame4.cpp:53:1: error: stray '\302' in program anagrame4.cpp:53:1: error: stray '\240' in program anagrame4.cpp:55:1: error: stray '\302' in program for(i=0;i<=n-1;i++) ^ anagrame4.cpp:55:1: error: stray '\240' in program anagrame4.cpp:55:1: error: stray '\302' in program anagrame4.cpp:55:1: error: stray '\240' in program anagrame4.cpp:57:1: error: stray '\302' in program { ^ anagrame4.cpp:57:1: error: stray '\240' in program anagrame4.cpp:57:1: error: stray '\302' in program anagrame4.cpp:57:1: error: stray '\240' in program anagrame4.cpp:59:1: error: stray '\302' in program st[k]=i; ^ anagrame4.cpp:59:1: error: stray '\240' in program anagrame4.cpp:59:1: error: stray '\302' in program anagrame4.cpp:59:1: error: stray '\240' in program anagrame4.cpp:59:1: error: stray '\302' in program anagrame4.cpp:59:1: error: stray '\240' in program anagrame4.cpp:59:1: error: stray '\302' in program anagrame4.cpp:59:1: error: stray '\240' in program anagrame4.cpp:61:1: error: stray '\302' in program if(valid(k)) ^ anagrame4.cpp:61:1: error: stray '\240' in program anagrame4.cpp:61:1: error: stray '\302' in program anagrame4.cpp:61:1: error: stray '\240' in program anagrame4.cpp:61:1: error: stray '\302' in program anagrame4.cpp:61:1: error: stray '\240' in program anagrame4.cpp:61:1: error: stray '\302' in program anagrame4.cpp:61:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program if(k==n) ^ anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:63:1: error: stray '\302' in program anagrame4.cpp:63:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program afisare(k); ^ anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:65:1: error: stray '\302' in program anagrame4.cpp:65:1: error: stray '\240' in program anagrame4.cpp:67:1: error: stray '\302' in program else ^ anagrame4.cpp:67:1: error: stray '\240' in program anagrame4.cpp:67:1: error: stray '\302' in program anagrame4.cpp:67:1: error: stray '\240' in program anagrame4.cpp:67:1: error: stray '\302' in program anagrame4.cpp:67:1: error: stray '\240' in program anagrame4.cpp:67:1: error: stray '\302' in program anagrame4.cpp:67:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program back(k+1); ^ anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:69:1: error: stray '\302' in program anagrame4.cpp:69:1: error: stray '\240' in program anagrame4.cpp:71:1: error: stray '\302' in program } ^ anagrame4.cpp:71:1: error: stray '\240' in program anagrame4.cpp:71:1: error: stray '\302' in program anagrame4.cpp:71:1: error: stray '\240' in program anagrame4.cpp:79:1: error: stray '\302' in program cin>>s; ^ anagrame4.cpp:79:1: error: stray '\240' in program anagrame4.cpp:79:1: error: stray '\302' in program anagrame4.cpp:79:1: error: stray '\240' in program anagrame4.cpp:81:1: error: stray '\302' in program n=strlen(s); ^ anagrame4.cpp:81:1: error: stray '\240' in program anagrame4.cpp:81:1: error: stray '\302' in program anagrame4.cpp:81:1: error: stray '\240' in program anagrame4.cpp:83:1: error: stray '\302' in program for(i=0;i<=n-2;i++) ^ anagrame4.cpp:83:1: error: stray '\240' in program anagrame4.cpp:83:1: error: stray '\302' in program anagrame4.cpp:83:1: error: stray '\240' in program anagrame4.cpp:85:1: error: stray '\302' in program for(j=i+1;j<=n-1;j++) ^ anagrame4.cpp:85:1: error: stray '\240' in program anagrame4.cpp:85:1: error: stray '\302' in program anagrame4.cpp:85:1: error: stray '\240' in program anagrame4.cpp:85:1: error: stray '\302' in program anagrame4.cpp:85:1: error: stray '\240' in program anagrame4.cpp:85:1: error: stray '\302' in program anagrame4.cpp:85:1: error: stray '\240' in program anagrame4.cpp:87:1: error: stray '\302' in program if(s[i]>s[j]) ^ anagrame4.cpp:87:1: error: stray '\240' in program anagrame4.cpp:87:1: error: stray '\302' in program anagrame4.cpp:87:1: error: stray '\240' in program anagrame4.cpp:87:1: error: stray '\302' in program anagrame4.cpp:87:1: error: stray '\240' in program anagrame4.cpp:87:1: error: stray '\302' in program anagrame4.cpp:87:1: error: stray '\240' in program anagrame4.cpp:89:1: error: stray '\302' in program { ^ anagrame4.cpp:89:1: error: stray '\240' in program anagrame4.cpp:89:1: error: stray '\302' in program anagrame4.cpp:89:1: error: stray '\240' in program anagrame4.cpp:89:1: error: stray '\302' in program anagrame4.cpp:89:1: error: stray '\240' in program anagrame4.cpp:89:1: error: stray '\302' in program anagrame4.cpp:89:1: error: stray '\240' in program anagrame4.cpp:91:1: error: stray '\302' in program aux=s[i]; ^ anagrame4.cpp:91:1: error: stray '\240' in program anagrame4.cpp:91:1: error: stray '\302' in program anagrame4.cpp:91:1: error: stray '\240' in program anagrame4.cpp:91:1: error: stray '\302' in program anagrame4.cpp:91:1: error: stray '\240' in program anagrame4.cpp:91:1: error: stray '\302' in program anagrame4.cpp:91:1: error: stray '\240' in program anagrame4.cpp:93:1: error: stray '\302' in program s[i]=s[j]; ^ anagrame4.cpp:93:1: error: stray '\240' in program anagrame4.cpp:93:1: error: stray '\302' in program anagrame4.cpp:93:1: error: stray '\240' in program anagrame4.cpp:95:1: error: stray '\302' in program s[j]=aux; ^ anagrame4.cpp:95:1: error: stray '\240' in program anagrame4.cpp:95:1: error: stray '\302' in program anagrame4.cpp:95:1: error: stray '\240' in program anagrame4.cpp: In function 'void back(int)': anagrame4.cpp:61:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k)) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame4 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ă.