Detalii evaluare #8774498

Rezumat problemă

La un festival sunt programate n spectacole. Pentru fiecare se cunoaște momentul de început și momentul de sfârșit, exprimate prin numere naturale. Un spectator dorește să urmărească cât mai multe spectacole în întregime.

Determinați numărul maxim de spectacole care pot fi urmărite, fără ca acestea să se suprapună.

Detalii

Problema Spectacole Operații I/O spectacole.in/spectacole.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #8774498 Utilizator Alcatel Sorinel Pustiu (tcudor)
Fișier spectacole.cpp Dimensiune 606 B
Data încărcării 12 Martie 2018, 11:39 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

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

 ^
spectacole.cpp:4:1: error: stray '\240' in program
spectacole.cpp:4:1: error: stray '\302' in program
spectacole.cpp:4:1: error: stray '\240' in program
spectacole.cpp:5:1: error: stray '\302' in program
 int n,i,aux,k;

 ^
spectacole.cpp:5:1: error: stray '\240' in program
spectacole.cpp:6:1: error: stray '\302' in program
 struct spectacol

 ^
spectacole.cpp:6:1: error: stray '\240' in program
spectacole.cpp:8:1: error: stray '\302' in program
    int x,y;

 ^
spectacole.cpp:8:1: error: stray '\240' in program
spectacole.cpp:8:1: error: stray '\302' in program
spectacole.cpp:8:1: error: stray '\240' in program
spectacole.cpp:8:1: error: stray '\302' in program
spectacole.cpp:8:1: error: stray '\240' in program
spectacole.cpp:8:1: error: stray '\302' in program
spectacole.cpp:8:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
 bool cmp(const spectacol a, const spectacol b)

 ^
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:10:1: error: stray '\302' in program
spectacole.cpp:10:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
      return a.y< b.y;

 ^
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:12:1: error: stray '\302' in program
spectacole.cpp:12:1: error: stray '\240' in program
spectacole.cpp:14:1: error: stray '\302' in program
 int main()

 ^
spectacole.cpp:14:1: error: stray '\240' in program
spectacole.cpp:16:1: error: stray '\302' in program
     ifstream f("spectacole.in");

 ^
spectacole.cpp:16:1: error: stray '\240' in program
spectacole.cpp:16:1: error: stray '\302' in program
spectacole.cpp:16:1: error: stray '\240' in program
spectacole.cpp:16:1: error: stray '\302' in program
spectacole.cpp:16:1: error: stray '\240' in program
spectacole.cpp:16:1: error: stray '\302' in program
spectacole.cpp:16:1: error: stray '\240' in program
spectacole.cpp:16:1: error: stray '\302' in program
spectacole.cpp:16:1: error: stray '\240' in program
spectacole.cpp:17:1: error: stray '\302' in program
     ofstream g("spectacole.out");

 ^
spectacole.cpp:17:1: error: stray '\240' in program
spectacole.cpp:17:1: error: stray '\302' in program
spectacole.cpp:17:1: error: stray '\240' in program
spectacole.cpp:17:1: error: stray '\302' in program
spectacole.cpp:17:1: error: stray '\240' in program
spectacole.cpp:17:1: error: stray '\302' in program
spectacole.cpp:17:1: error: stray '\240' in program
spectacole.cpp:17:1: error: stray '\302' in program
spectacole.cpp:17:1: error: stray '\240' in program
spectacole.cpp:18:1: error: stray '\302' in program
     fin>> n;

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

 ^
spectacole.cpp:19:1: error: stray '\240' in program
spectacole.cpp:19:1: error: stray '\302' in program
spectacole.cpp:19:1: error: stray '\240' in program
spectacole.cpp:19:1: error: stray '\302' in program
spectacole.cpp:19:1: error: stray '\240' in program
spectacole.cpp:19:1: error: stray '\302' in program
spectacole.cpp:19:1: error: stray '\240' in program
spectacole.cpp:19:1: error: stray '\302' in program
spectacole.cpp:19:1: error: stray '\240' in program
spectacole.cpp:21:1: error: stray '\302' in program
     sort(v+1,v+n+1,cmp);

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

 ^
spectacole.cpp:22:1: error: stray '\240' in program
spectacole.cpp:22:1: error: stray '\302' in program
spectacole.cpp:22:1: error: stray '\240' in program
spectacole.cpp:22:1: error: stray '\302' in program
spectacole.cpp:22:1: error: stray '\240' in program
spectacole.cpp:22:1: error: stray '\302' in program
spectacole.cpp:22:1: error: stray '\240' in program
spectacole.cpp:22:1: error: stray '\302' in program
spectacole.cpp:22:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
       if(v[i].x>=aux)

 ^
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:23:1: error: stray '\302' in program
spectacole.cpp:23:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
       {

 ^
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:24:1: error: stray '\302' in program
spectacole.cpp:24:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
           k ++;

 ^
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:25:1: error: stray '\302' in program
spectacole.cpp:25:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
           aux=v[i].y;

 ^
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:26:1: error: stray '\302' in program
spectacole.cpp:26:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
       }

 ^
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:27:1: error: stray '\302' in program
spectacole.cpp:27:1: error: stray '\240' in program
spectacole.cpp:28:1: error: stray '\302' in program
     fout<<k;

 ^
spectacole.cpp:28:1: error: stray '\240' in program
spectacole.cpp:28:1: error: stray '\302' in program
spectacole.cpp:28:1: error: stray '\240' in program
spectacole.cpp:28:1: error: stray '\302' in program
spectacole.cpp:28:1: error: stray '\240' in program
spectacole.cpp:28:1: error: stray '\302' in program
spectacole.cpp:28:1: error: stray '\240' in program
spectacole.cpp:29:1: error: stray '\302' in program
     return 0;

 ^
spectacole.cpp:29:1: error: stray '\240' in program
spectacole.cpp:29:1: error: stray '\302' in program
spectacole.cpp:29:1: error: stray '\240' in program
spectacole.cpp:29:1: error: stray '\302' in program
spectacole.cpp:29:1: error: stray '\240' in program
spectacole.cpp:29:1: error: stray '\302' in program
spectacole.cpp:29:1: error: stray '\240' in program
spectacole.cpp:29:1: error: stray '\302' in program
spectacole.cpp:29:1: error: stray '\240' in program
spectacole.cpp: In function 'int main()':
spectacole.cpp:18:9: error: 'fin' was not declared in this scope
     fin>> n;

         ^
spectacole.cpp:28:9: error: 'fout' was not declared in this scope
     fout<<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 Spectacole 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ă.