Detalii evaluare #8976877

Rezumat problemă

Se dau înălțimile a n copii, numerotați de la 1 la n, exprimate prin numere naturale. Afișați numerele de ordine ale copiilor în ordinea crescătoare a înălțimii lor.

Detalii

Problema Inaltimi Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #8976877 Utilizator Caciuc Ioana (RoxIoana)
Fișier inaltimi.cpp Dimensiune 518 B
Data încărcării 23 Martie 2018, 12:18 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

inaltimi.cpp:4:1: error: stray '\302' in program
 { int n, a[100],b[100],j,i,min,c,aux;   

 ^
inaltimi.cpp:4:1: error: stray '\240' in program
inaltimi.cpp:4:1: error: stray '\302' in program
inaltimi.cpp:4:1: error: stray '\240' in program
inaltimi.cpp:5:2: error: stray '\302' in program
  cin>>n;   

  ^
inaltimi.cpp:5:2: error: stray '\240' in program
inaltimi.cpp:5:2: error: stray '\302' in program
inaltimi.cpp:5:2: error: stray '\240' in program
inaltimi.cpp:6:2: error: stray '\302' in program
  for(i=1;i<=n;i++)   

  ^
inaltimi.cpp:6:2: error: stray '\240' in program
inaltimi.cpp:6:2: error: stray '\302' in program
inaltimi.cpp:6:2: error: stray '\240' in program
inaltimi.cpp:7:2: error: stray '\302' in program
  {cin>>a[i];    

  ^
inaltimi.cpp:7:2: error: stray '\240' in program
inaltimi.cpp:7:2: error: stray '\302' in program
inaltimi.cpp:7:2: error: stray '\240' in program
inaltimi.cpp:8:3: error: stray '\302' in program
   b[i]=a[i];   

   ^
inaltimi.cpp:8:3: error: stray '\240' in program
inaltimi.cpp:8:3: error: stray '\302' in program
inaltimi.cpp:8:3: error: stray '\240' in program
inaltimi.cpp:10:2: error: stray '\302' in program
  for(i=1;i<=n;i++)   

  ^
inaltimi.cpp:10:2: error: stray '\240' in program
inaltimi.cpp:10:2: error: stray '\302' in program
inaltimi.cpp:10:2: error: stray '\240' in program
inaltimi.cpp:11:2: error: stray '\302' in program
  {min=a[i];    

  ^
inaltimi.cpp:11:2: error: stray '\240' in program
inaltimi.cpp:11:2: error: stray '\302' in program
inaltimi.cpp:11:2: error: stray '\240' in program
inaltimi.cpp:12:3: error: stray '\302' in program
   c=i;     

   ^
inaltimi.cpp:12:3: error: stray '\240' in program
inaltimi.cpp:12:3: error: stray '\302' in program
inaltimi.cpp:12:3: error: stray '\240' in program
inaltimi.cpp:12:3: error: stray '\302' in program
inaltimi.cpp:12:3: error: stray '\240' in program
inaltimi.cpp:13:3: error: stray '\302' in program
   for(j=i;j<=n;j++)     

   ^
inaltimi.cpp:13:3: error: stray '\240' in program
inaltimi.cpp:13:3: error: stray '\302' in program
inaltimi.cpp:13:3: error: stray '\240' in program
inaltimi.cpp:13:3: error: stray '\302' in program
inaltimi.cpp:13:3: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
      }     aux=a[i];     

 ^
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:15:1: error: stray '\302' in program
inaltimi.cpp:15:1: error: stray '\240' in program
inaltimi.cpp:16:3: error: stray '\302' in program
   a[i]=a[c];     

   ^
inaltimi.cpp:16:3: error: stray '\240' in program
inaltimi.cpp:16:3: error: stray '\302' in program
inaltimi.cpp:16:3: error: stray '\240' in program
inaltimi.cpp:16:3: error: stray '\302' in program
inaltimi.cpp:16:3: error: stray '\240' in program
inaltimi.cpp:17:3: error: stray '\302' in program
   a[c]=aux;   }    

   ^
inaltimi.cpp:17:3: error: stray '\240' in program
inaltimi.cpp:17:3: error: stray '\302' in program
inaltimi.cpp:17:3: error: stray '\240' in program
inaltimi.cpp:17:3: error: stray '\302' in program
inaltimi.cpp:17:3: error: stray '\240' in program
inaltimi.cpp:17:3: error: stray '\302' in program
inaltimi.cpp:17:3: error: stray '\240' in program
inaltimi.cpp:18:2: error: stray '\302' in program
  for(i=1;i<=n;i++)        

  ^
inaltimi.cpp:18:2: error: stray '\240' in program
inaltimi.cpp:18:2: error: stray '\302' in program
inaltimi.cpp:18:2: error: stray '\240' in program
inaltimi.cpp:18:2: error: stray '\302' in program
inaltimi.cpp:18:2: error: stray '\240' in program
inaltimi.cpp:18:2: error: stray '\302' in program
inaltimi.cpp:18:2: error: stray '\240' in program
inaltimi.cpp:19:6: error: stray '\302' in program
      for(j=1;j<=n;j++)        

      ^
inaltimi.cpp:19:6: error: stray '\240' in program
inaltimi.cpp:19:6: error: stray '\302' in program
inaltimi.cpp:19:6: error: stray '\240' in program
inaltimi.cpp:19:6: error: stray '\302' in program
inaltimi.cpp:19:6: error: stray '\240' in program
inaltimi.cpp:19:6: error: stray '\302' in program
inaltimi.cpp:19:6: error: stray '\240' in program
inaltimi.cpp:21:1: error: stray '\302' in program
     return 0;} 

 ^
inaltimi.cpp:21:1: error: stray '\240' in program
inaltimi.cpp:21:1: error: stray '\302' in program
inaltimi.cpp:21:1: error: stray '\240' in program
inaltimi.cpp:21:1: error: stray '\302' in program
inaltimi.cpp:21:1: error: stray '\240' in program

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