Detalii evaluare #52505890

Rezumat problemă

Cunoscând timpii de evaluare a n proiecte, să se stabilească ordinea de evaluare a acestora, astfel încât să se minimizeze timpul mediu de aşteptare a investitorilor care au depus aceste proiecte.

Detalii

Problema Proiecte Operații I/O proiecte.in/proiecte.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #52505890 Utilizator Cozma Octavian (Tavi1_000000)
Fișier proiecte.cpp Dimensiune 647 B
Data încărcării 01 Octombrie 2024, 22:46 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

proiecte.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <fstream>

         ^
proiecte.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>

         ^
proiecte.cpp:4:1: error: stray '\302' in program
 using namespace std;

 ^
proiecte.cpp:4:1: error: stray '\240' in program
proiecte.cpp:4:1: error: stray '\302' in program
proiecte.cpp:4:1: error: stray '\240' in program
proiecte.cpp:6:1: error: stray '\302' in program
 int main()

 ^
proiecte.cpp:6:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
     int a[1001],n,i,min,max,j;

 ^
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
     ifstream fin("proiecte.in");

 ^
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
     ofstream fout("proiecte.out");

 ^
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
     fin >> n;

 ^
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
proiecte.cpp:13:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
     for(i=1;i<=n;i++)

 ^
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
         fin >>a[i];

 ^
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
proiecte.cpp:16:1: error: stray '\240' in program
proiecte.cpp:18:1: error: stray '\302' in program
     min=a[0];

 ^
proiecte.cpp:18:1: error: stray '\240' in program
proiecte.cpp:18:1: error: stray '\302' in program
proiecte.cpp:18:1: error: stray '\240' in program
proiecte.cpp:18:1: error: stray '\302' in program
proiecte.cpp:18:1: error: stray '\240' in program
proiecte.cpp:18:1: error: stray '\302' in program
proiecte.cpp:18:1: error: stray '\240' in program
proiecte.cpp:19:1: error: stray '\302' in program
     max=a[0];

 ^
proiecte.cpp:19:1: error: stray '\240' in program
proiecte.cpp:19:1: error: stray '\302' in program
proiecte.cpp:19:1: error: stray '\240' in program
proiecte.cpp:19:1: error: stray '\302' in program
proiecte.cpp:19:1: error: stray '\240' in program
proiecte.cpp:19:1: error: stray '\302' in program
proiecte.cpp:19:1: error: stray '\240' in program
proiecte.cpp:21:1: error: stray '\302' in program
     for(i=1;i<=n;i++)

 ^
proiecte.cpp:21:1: error: stray '\240' in program
proiecte.cpp:21:1: error: stray '\302' in program
proiecte.cpp:21:1: error: stray '\240' in program
proiecte.cpp:21:1: error: stray '\302' in program
proiecte.cpp:21:1: error: stray '\240' in program
proiecte.cpp:21:1: error: stray '\302' in program
proiecte.cpp:21:1: error: stray '\240' in program
proiecte.cpp:22:1: error: stray '\302' in program
     {

 ^
proiecte.cpp:22:1: error: stray '\240' in program
proiecte.cpp:22:1: error: stray '\302' in program
proiecte.cpp:22:1: error: stray '\240' in program
proiecte.cpp:22:1: error: stray '\302' in program
proiecte.cpp:22:1: error: stray '\240' in program
proiecte.cpp:22:1: error: stray '\302' in program
proiecte.cpp:22:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
         if(a[i]>max) max=a[i];

 ^
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:23:1: error: stray '\302' in program
proiecte.cpp:23:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
         if(a[i]<min) min=a[i];

 ^
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:24:1: error: stray '\302' in program
proiecte.cpp:24:1: error: stray '\240' in program
proiecte.cpp:25:1: error: stray '\302' in program
     }

 ^
proiecte.cpp:25:1: error: stray '\240' in program
proiecte.cpp:25:1: error: stray '\302' in program
proiecte.cpp:25:1: error: stray '\240' in program
proiecte.cpp:25:1: error: stray '\302' in program
proiecte.cpp:25:1: error: stray '\240' in program
proiecte.cpp:25:1: error: stray '\302' in program
proiecte.cpp:25:1: error: stray '\240' in program
proiecte.cpp:27:1: error: stray '\302' in program
   for(j=min;j<=max;j++)

 ^
proiecte.cpp:27:1: error: stray '\240' in program
proiecte.cpp:27:1: error: stray '\302' in program
proiecte.cpp:27:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
        for(i=1;i<=n;i++)

 ^
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:28:1: error: stray '\302' in program
proiecte.cpp:28:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
             if (j==a[i])

 ^
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:29:1: error: stray '\302' in program
proiecte.cpp:29:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
                  fout << i << " ";

 ^
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:30:1: error: stray '\302' in program
proiecte.cpp:30:1: error: stray '\240' in program
proiecte.cpp:32:1: error: stray '\302' in program
     return 0;

 ^
proiecte.cpp:32:1: error: stray '\240' in program
proiecte.cpp:32:1: error: stray '\302' in program
proiecte.cpp:32:1: error: stray '\240' in program
proiecte.cpp:32:1: error: stray '\302' in program
proiecte.cpp:32:1: error: stray '\240' in program
proiecte.cpp:32:1: error: stray '\302' in program
proiecte.cpp:32:1: error: stray '\240' in program
proiecte.cpp:32:1: error: stray '\302' in program
proiecte.cpp:32:1: error: stray '\240' in program
proiecte.cpp: In function 'int main()':
proiecte.cpp:10:9: error: 'ifstream' was not declared in this scope
     ifstream fin("proiecte.in");

         ^
proiecte.cpp:10:19: error: expected ';' before 'fin'
     ifstream fin("proiecte.in");

                   ^
proiecte.cpp:11:9: error: 'ofstream' was not declared in this scope
     ofstream fout("proiecte.out");

         ^
proiecte.cpp:11:19: error: expected ';' before 'fout'
     ofstream fout("proiecte.out");

                   ^
proiecte.cpp:13:9: error: 'fin' was not declared in this scope
     fin >> n;

         ^
proiecte.cpp:30:35: error: 'fout' was not declared in this scope
                  fout << i << " ";

                                   ^

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