Detalii evaluare #53766812

Rezumat problemă

Se citește un număr natural n având cifrele diferite două câte două. Afișați în ordine crescătoare numerele care se pot obține din cifrele lui n și care au același număr de cifre ca n.

Detalii

Problema numere123 Operații I/O tastatură/ecran
Limita timp 0.4 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #53766812 Utilizator puia mario (Mario548)
Fișier numere123.cpp Dimensiune 1020 B
Data încărcării 11 Noiembrie 2024, 11:27 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

numere123.cpp:5:1: error: stray '\302' in program
     st[k]=0;

 ^
numere123.cpp:5:1: error: stray '\240' in program
numere123.cpp:5:1: error: stray '\302' in program
numere123.cpp:5:1: error: stray '\240' in program
numere123.cpp:11:1: error: stray '\302' in program
     st[k]++;

 ^
numere123.cpp:11:1: error: stray '\240' in program
numere123.cpp:11:1: error: stray '\302' in program
numere123.cpp:11:1: error: stray '\240' in program
numere123.cpp:12:1: error: stray '\302' in program
     return 1;}

 ^
numere123.cpp:12:1: error: stray '\240' in program
numere123.cpp:12:1: error: stray '\302' in program
numere123.cpp:12:1: error: stray '\240' in program
numere123.cpp:13:1: error: stray '\302' in program
     else return 0;

 ^
numere123.cpp:13:1: error: stray '\240' in program
numere123.cpp:13:1: error: stray '\302' in program
numere123.cpp:13:1: error: stray '\240' in program
numere123.cpp:18:1: error: stray '\302' in program
     for(int i=1;i<=k-1;i++)

 ^
numere123.cpp:18:1: error: stray '\240' in program
numere123.cpp:18:1: error: stray '\302' in program
numere123.cpp:18:1: error: stray '\240' in program
numere123.cpp:19:1: error: stray '\302' in program
         if(st[k]==st[i])

 ^
numere123.cpp:19:1: error: stray '\240' in program
numere123.cpp:19:1: error: stray '\302' in program
numere123.cpp:19:1: error: stray '\240' in program
numere123.cpp:19:1: error: stray '\302' in program
numere123.cpp:19:1: error: stray '\240' in program
numere123.cpp:19:1: error: stray '\302' in program
numere123.cpp:19:1: error: stray '\240' in program
numere123.cpp:20:1: error: stray '\302' in program
         return 0;

 ^
numere123.cpp:20:1: error: stray '\240' in program
numere123.cpp:20:1: error: stray '\302' in program
numere123.cpp:20:1: error: stray '\240' in program
numere123.cpp:20:1: error: stray '\302' in program
numere123.cpp:20:1: error: stray '\240' in program
numere123.cpp:20:1: error: stray '\302' in program
numere123.cpp:20:1: error: stray '\240' in program
numere123.cpp:21:1: error: stray '\302' in program
     return 1;

 ^
numere123.cpp:21:1: error: stray '\240' in program
numere123.cpp:21:1: error: stray '\302' in program
numere123.cpp:21:1: error: stray '\240' in program
numere123.cpp:31:1: error: stray '\302' in program
     for(int i=1;i<=k;i++)

 ^
numere123.cpp:31:1: error: stray '\240' in program
numere123.cpp:31:1: error: stray '\302' in program
numere123.cpp:31:1: error: stray '\240' in program
numere123.cpp:32:1: error: stray '\302' in program
         cout<<st[i]<<' ';

 ^
numere123.cpp:32:1: error: stray '\240' in program
numere123.cpp:32:1: error: stray '\302' in program
numere123.cpp:32:1: error: stray '\240' in program
numere123.cpp:32:1: error: stray '\302' in program
numere123.cpp:32:1: error: stray '\240' in program
numere123.cpp:32:1: error: stray '\302' in program
numere123.cpp:32:1: error: stray '\240' in program
numere123.cpp:33:1: error: stray '\302' in program
     cout<<'/n';

 ^
numere123.cpp:33:1: error: stray '\240' in program
numere123.cpp:33:1: error: stray '\302' in program
numere123.cpp:33:1: error: stray '\240' in program
numere123.cpp:33:13: warning: multi-character character constant [-Wmultichar]
     cout<<'/n';

             ^
numere123.cpp:37:1: error: stray '\302' in program
     int as;

 ^
numere123.cpp:37:1: error: stray '\240' in program
numere123.cpp:37:1: error: stray '\302' in program
numere123.cpp:37:1: error: stray '\240' in program
numere123.cpp:38:1: error: stray '\302' in program
     k=1;

 ^
numere123.cpp:38:1: error: stray '\240' in program
numere123.cpp:38:1: error: stray '\302' in program
numere123.cpp:38:1: error: stray '\240' in program
numere123.cpp:39:1: error: stray '\302' in program
     init();

 ^
numere123.cpp:39:1: error: stray '\240' in program
numere123.cpp:39:1: error: stray '\302' in program
numere123.cpp:39:1: error: stray '\240' in program
numere123.cpp:40:1: error: stray '\302' in program
     while(k>0)

 ^
numere123.cpp:40:1: error: stray '\240' in program
numere123.cpp:40:1: error: stray '\302' in program
numere123.cpp:40:1: error: stray '\240' in program
numere123.cpp:41:1: error: stray '\302' in program
     {do{as=succesor();}

 ^
numere123.cpp:41:1: error: stray '\240' in program
numere123.cpp:41:1: error: stray '\302' in program
numere123.cpp:41:1: error: stray '\240' in program
numere123.cpp:42:1: error: stray '\302' in program
       while(as && !valid());

 ^
numere123.cpp:42:1: error: stray '\240' in program
numere123.cpp:42:1: error: stray '\302' in program
numere123.cpp:42:1: error: stray '\240' in program
numere123.cpp:42:1: error: stray '\302' in program
numere123.cpp:42:1: error: stray '\240' in program
numere123.cpp:43:1: error: stray '\302' in program
       if(as)

 ^
numere123.cpp:43:1: error: stray '\240' in program
numere123.cpp:43:1: error: stray '\302' in program
numere123.cpp:43:1: error: stray '\240' in program
numere123.cpp:43:1: error: stray '\302' in program
numere123.cpp:43:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
             if(solutie())

 ^
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:44:1: error: stray '\302' in program
numere123.cpp:44:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
             tipar();

 ^
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:45:1: error: stray '\302' in program
numere123.cpp:45:1: error: stray '\240' in program
numere123.cpp:46:1: error: stray '\302' in program
       else{

 ^
numere123.cpp:46:1: error: stray '\240' in program
numere123.cpp:46:1: error: stray '\302' in program
numere123.cpp:46:1: error: stray '\240' in program
numere123.cpp:46:1: error: stray '\302' in program
numere123.cpp:46:1: error: stray '\240' in program
numere123.cpp:47:1: error: stray '\302' in program
         k++;

 ^
numere123.cpp:47:1: error: stray '\240' in program
numere123.cpp:47:1: error: stray '\302' in program
numere123.cpp:47:1: error: stray '\240' in program
numere123.cpp:47:1: error: stray '\302' in program
numere123.cpp:47:1: error: stray '\240' in program
numere123.cpp:47:1: error: stray '\302' in program
numere123.cpp:47:1: error: stray '\240' in program
numere123.cpp:48:1: error: stray '\302' in program
         init();

 ^
numere123.cpp:48:1: error: stray '\240' in program
numere123.cpp:48:1: error: stray '\302' in program
numere123.cpp:48:1: error: stray '\240' in program
numere123.cpp:48:1: error: stray '\302' in program
numere123.cpp:48:1: error: stray '\240' in program
numere123.cpp:48:1: error: stray '\302' in program
numere123.cpp:48:1: error: stray '\240' in program
numere123.cpp:49:1: error: stray '\302' in program
       }else

 ^
numere123.cpp:49:1: error: stray '\240' in program
numere123.cpp:49:1: error: stray '\302' in program
numere123.cpp:49:1: error: stray '\240' in program
numere123.cpp:49:1: error: stray '\302' in program
numere123.cpp:49:1: error: stray '\240' in program
numere123.cpp:50:1: error: stray '\302' in program
       k--;

 ^
numere123.cpp:50:1: error: stray '\240' in program
numere123.cpp:50:1: error: stray '\302' in program
numere123.cpp:50:1: error: stray '\240' in program
numere123.cpp:50:1: error: stray '\302' in program
numere123.cpp:50:1: error: stray '\240' in program
numere123.cpp:52:1: error: stray '\302' in program
     }

 ^
numere123.cpp:52:1: error: stray '\240' in program
numere123.cpp:52:1: error: stray '\302' in program
numere123.cpp:52:1: error: stray '\240' in program
numere123.cpp:71:1: error: stray '\302' in program
     return 0;

 ^
numere123.cpp:71:1: error: stray '\240' in program
numere123.cpp:71:1: error: stray '\302' in program
numere123.cpp:71:1: error: stray '\240' in program
numere123.cpp:1:1: error: 'Permutari' does not name a type
 Permutari

 ^
numere123.cpp: In function 'void init()':
numere123.cpp:5:7: error: 'st' was not declared in this scope
     st[k]=0;

       ^
numere123.cpp:5:10: error: 'k' was not declared in this scope
     st[k]=0;

          ^
numere123.cpp: In function 'int succesor()':
numere123.cpp:9:6: error: 'st' was not declared in this scope
 { if(st[k]<n)

      ^
numere123.cpp:9:9: error: 'k' was not declared in this scope
 { if(st[k]<n)

         ^
numere123.cpp:9:12: error: 'n' was not declared in this scope
 { if(st[k]<n)

            ^
numere123.cpp: In function 'int valid()':
numere123.cpp:18:22: error: 'k' was not declared in this scope
     for(int i=1;i<=k-1;i++)

                      ^
numere123.cpp:19:16: error: 'st' was not declared in this scope
         if(st[k]==st[i])

                ^
numere123.cpp: In function 'int solutie()':
numere123.cpp:24:5: error: 'k' was not declared in this scope
 {if(k==n)

     ^
numere123.cpp:24:8: error: 'n' was not declared in this scope
 {if(k==n)

        ^
numere123.cpp: In function 'void tipar()':
numere123.cpp:31:22: error: 'k' was not declared in this scope
     for(int i=1;i<=k;i++)

                      ^
numere123.cpp:32:13: error: 'cout' was not declared in this scope
         cout<<st[i]<<' ';

             ^
numere123.cpp:32:19: error: 'st' was not declared in this scope
         cout<<st[i]<<' ';

                   ^
numere123.cpp:33:7: error: 'cout' was not declared in this scope
     cout<<'/n';

       ^
numere123.cpp: In function 'void back()':
numere123.cpp:38:7: error: 'k' was not declared in this scope
     k=1;

       ^
numere123.cpp: In function 'int main()':
numere123.cpp:56:1: error: 'cin' was not declared in this scope
 cin>>n;

 ^
numere123.cpp:56:6: error: 'n' was not declared in this scope
 cin>>n;

      ^
numere123.cpp:58:4: error: 'v' was not declared in this scope
  { v[++j]=n%10;

    ^
numere123.cpp:61:9: error: 'v' was not declared in this scope
      if(v[i]>v[i+1])

         ^
numere123.cpp:62:3: error: 'ord' was not declared in this scope
  {ord=0;

   ^
numere123.cpp:63:3: error: 'aux' was not declared in this scope
   aux=v[i];

   ^
numere123.cpp:68:9: error: 'ord' was not declared in this scope
  while (ord==0)

         ^
numere123.cpp:69:6: error: expected ';' before 'for'
      for (i=1;i<=j;i++)

      ^
numere123.cpp:69:11: error: 'i' was not declared in this scope
      for (i=1;i<=j;i++)

           ^
numere123.cpp:70:6: error: 'cout' was not declared in this scope
      cout<<v[i]<<' ';

      ^
numere123.cpp:70:12: error: 'v' was not declared in this scope
      cout<<v[i]<<' ';

            ^
numere123.cpp: In function 'int succesor()':
numere123.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
 }

 ^
numere123.cpp: In function 'int solutie()':
numere123.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
 }

 ^

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