Detalii evaluare #21513758

Rezumat problemă

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.

Detalii

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 Nane Mernic (Dinu1948)
Fișier anagrame4.cpp Dimensiune 1003 B
Data încărcării 03 Martie 2020, 19:53 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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))

              ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema anagrame4 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.