Detalii evaluare #53858764

Rezumat problemă

Gigel este un cântăreț începător. El știe deja să cânte n piese, și pentru fiecare piesă se cunoaște durata, exprimată în minute și secunde. Gigel va participa la o emisiune de televiziune, unde va putea cânta timp de T secunde. El vrea să cânte cât mai multe piese, pentru a-și demonstra talentul deosebit.

Ajutați-l să aleagă piesele pentru emisiune, și vă va răsplăti cu un autograf.

Detalii

Problema Concert Operații I/O concert.in/concert.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #53858764 Utilizator Buzdugan Andrei (AndreiBuzdugan)
Fișier concert.cpp Dimensiune 1004 B
Data încărcării 13 Noiembrie 2024, 12:35 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

concert.cpp:17:1: error: stray '\302' in program
     int t,ind;

 ^
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
     if(a.t<=b.t)

 ^
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
         return 1;

 ^
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
     else if(a.t==b.t&&a.ind<b.ind) 

 ^
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
         return 1;

 ^
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
     else 

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

 ^
concert.cpp:28:1: error: stray '\240' in program
concert.cpp:28:1: error: stray '\302' in program
concert.cpp:28:1: error: stray '\240' in program
concert.cpp:28:1: error: stray '\302' in program
concert.cpp:28:1: error: stray '\240' in program
concert.cpp:28:1: error: stray '\302' in program
concert.cpp:28:1: error: stray '\240' in program
concert.cpp:34:1: error: stray '\302' in program
     fein>>n>>timp;

 ^
concert.cpp:34:1: error: stray '\240' in program
concert.cpp:34:1: error: stray '\302' in program
concert.cpp:34:1: error: stray '\240' in program
concert.cpp:35:1: error: stray '\302' in program
     for(int i=1;i<=n;i++)

 ^
concert.cpp:35:1: error: stray '\240' in program
concert.cpp:35:1: error: stray '\302' in program
concert.cpp:35:1: error: stray '\240' in program
concert.cpp:36:1: error: stray '\302' in program
     {

 ^
concert.cpp:36:1: error: stray '\240' in program
concert.cpp:36:1: error: stray '\302' in program
concert.cpp:36:1: error: stray '\240' in program
concert.cpp:37:1: error: stray '\302' in program
         fein>>v;

 ^
concert.cpp:37:1: error: stray '\240' in program
concert.cpp:37:1: error: stray '\302' in program
concert.cpp:37:1: error: stray '\240' in program
concert.cpp:37:1: error: stray '\302' in program
concert.cpp:37:1: error: stray '\240' in program
concert.cpp:37:1: error: stray '\302' in program
concert.cpp:37:1: error: stray '\240' in program
concert.cpp:38:1: error: stray '\302' in program
         int j=0,a=0,b=0;

 ^
concert.cpp:38:1: error: stray '\240' in program
concert.cpp:38:1: error: stray '\302' in program
concert.cpp:38:1: error: stray '\240' in program
concert.cpp:38:1: error: stray '\302' in program
concert.cpp:38:1: error: stray '\240' in program
concert.cpp:38:1: error: stray '\302' in program
concert.cpp:38:1: error: stray '\240' in program
concert.cpp:39:1: error: stray '\302' in program
         while(v[j]!=':') a=a*10+v[j++]-'0';

 ^
concert.cpp:39:1: error: stray '\240' in program
concert.cpp:39:1: error: stray '\302' in program
concert.cpp:39:1: error: stray '\240' in program
concert.cpp:39:1: error: stray '\302' in program
concert.cpp:39:1: error: stray '\240' in program
concert.cpp:39:1: error: stray '\302' in program
concert.cpp:39:1: error: stray '\240' in program
concert.cpp:40:1: error: stray '\302' in program
         a *= 60;

 ^
concert.cpp:40:1: error: stray '\240' in program
concert.cpp:40:1: error: stray '\302' in program
concert.cpp:40:1: error: stray '\240' in program
concert.cpp:40:1: error: stray '\302' in program
concert.cpp:40:1: error: stray '\240' in program
concert.cpp:40:1: error: stray '\302' in program
concert.cpp:40:1: error: stray '\240' in program
concert.cpp:41:1: error: stray '\302' in program
         j++;

 ^
concert.cpp:41:1: error: stray '\240' in program
concert.cpp:41:1: error: stray '\302' in program
concert.cpp:41:1: error: stray '\240' in program
concert.cpp:41:1: error: stray '\302' in program
concert.cpp:41:1: error: stray '\240' in program
concert.cpp:41:1: error: stray '\302' in program
concert.cpp:41:1: error: stray '\240' in program
concert.cpp:42:1: error: stray '\302' in program
         while(v[j] != '\0')b=b*10+v[j++]-'0';

 ^
concert.cpp:42:1: error: stray '\240' in program
concert.cpp:42:1: error: stray '\302' in program
concert.cpp:42:1: error: stray '\240' in program
concert.cpp:42:1: error: stray '\302' in program
concert.cpp:42:1: error: stray '\240' in program
concert.cpp:42:1: error: stray '\302' in program
concert.cpp:42:1: error: stray '\240' in program
concert.cpp:43:1: error: stray '\302' in program
         a+=b;

 ^
concert.cpp:43:1: error: stray '\240' in program
concert.cpp:43:1: error: stray '\302' in program
concert.cpp:43:1: error: stray '\240' in program
concert.cpp:43:1: error: stray '\302' in program
concert.cpp:43:1: error: stray '\240' in program
concert.cpp:43:1: error: stray '\302' in program
concert.cpp:43:1: error: stray '\240' in program
concert.cpp:44:1: error: stray '\302' in program
         x[i].t=a;

 ^
concert.cpp:44:1: error: stray '\240' in program
concert.cpp:44:1: error: stray '\302' in program
concert.cpp:44:1: error: stray '\240' in program
concert.cpp:44:1: error: stray '\302' in program
concert.cpp:44:1: error: stray '\240' in program
concert.cpp:44:1: error: stray '\302' in program
concert.cpp:44:1: error: stray '\240' in program
concert.cpp:45:1: error: stray '\302' in program
         x[i].ind=i;

 ^
concert.cpp:45:1: error: stray '\240' in program
concert.cpp:45:1: error: stray '\302' in program
concert.cpp:45:1: error: stray '\240' in program
concert.cpp:45:1: error: stray '\302' in program
concert.cpp:45:1: error: stray '\240' in program
concert.cpp:45:1: error: stray '\302' in program
concert.cpp:45:1: error: stray '\240' in program
concert.cpp:46:1: error: stray '\302' in program
     }

 ^
concert.cpp:46:1: error: stray '\240' in program
concert.cpp:46:1: error: stray '\302' in program
concert.cpp:46:1: error: stray '\240' in program
concert.cpp:47:1: error: stray '\302' in program
     sort(x+1,x+n+1,comp);

 ^
concert.cpp:47:1: error: stray '\240' in program
concert.cpp:47:1: error: stray '\302' in program
concert.cpp:47:1: error: stray '\240' in program
concert.cpp:48:1: error: stray '\302' in program
     int i=1;

 ^
concert.cpp:48:1: error: stray '\240' in program
concert.cpp:48:1: error: stray '\302' in program
concert.cpp:48:1: error: stray '\240' in program
concert.cpp:49:1: error: stray '\302' in program
     while(i<=n&&x[i].t<=timp)

 ^
concert.cpp:49:1: error: stray '\240' in program
concert.cpp:49:1: error: stray '\302' in program
concert.cpp:49:1: error: stray '\240' in program
concert.cpp:50:1: error: stray '\302' in program
     {

 ^
concert.cpp:50:1: error: stray '\240' in program
concert.cpp:50:1: error: stray '\302' in program
concert.cpp:50:1: error: stray '\240' in program
concert.cpp:51:1: error: stray '\302' in program
         s[++cnt]=x[i].ind;

 ^
concert.cpp:51:1: error: stray '\240' in program
concert.cpp:51:1: error: stray '\302' in program
concert.cpp:51:1: error: stray '\240' in program
concert.cpp:51:1: error: stray '\302' in program
concert.cpp:51:1: error: stray '\240' in program
concert.cpp:51:1: error: stray '\302' in program
concert.cpp:51:1: error: stray '\240' in program
concert.cpp:52:1: error: stray '\302' in program
         timp-=x[i].t;

 ^
concert.cpp:52:1: error: stray '\240' in program
concert.cpp:52:1: error: stray '\302' in program
concert.cpp:52:1: error: stray '\240' in program
concert.cpp:52:1: error: stray '\302' in program
concert.cpp:52:1: error: stray '\240' in program
concert.cpp:52:1: error: stray '\302' in program
concert.cpp:52:1: error: stray '\240' in program
concert.cpp:53:1: error: stray '\302' in program
         i++;

 ^
concert.cpp:53:1: error: stray '\240' in program
concert.cpp:53:1: error: stray '\302' in program
concert.cpp:53:1: error: stray '\240' in program
concert.cpp:53:1: error: stray '\302' in program
concert.cpp:53:1: error: stray '\240' in program
concert.cpp:53:1: error: stray '\302' in program
concert.cpp:53:1: error: stray '\240' in program
concert.cpp:54:1: error: stray '\302' in program
     }

 ^
concert.cpp:54:1: error: stray '\240' in program
concert.cpp:54:1: error: stray '\302' in program
concert.cpp:54:1: error: stray '\240' in program
concert.cpp:55:1: error: stray '\302' in program
     fout<<cnt<<'\n';

 ^
concert.cpp:55:1: error: stray '\240' in program
concert.cpp:55:1: error: stray '\302' in program
concert.cpp:55:1: error: stray '\240' in program
concert.cpp:56:1: error: stray '\302' in program
     for(int i=1;i<=cnt;i++)

 ^
concert.cpp:56:1: error: stray '\240' in program
concert.cpp:56:1: error: stray '\302' in program
concert.cpp:56:1: error: stray '\240' in program
concert.cpp:57:1: error: stray '\302' in program
         fout<<s[i]<<" ";

 ^
concert.cpp:57:1: error: stray '\240' in program
concert.cpp:57:1: error: stray '\302' in program
concert.cpp:57:1: error: stray '\240' in program
concert.cpp:57:1: error: stray '\302' in program
concert.cpp:57:1: error: stray '\240' in program
concert.cpp:57:1: error: stray '\302' in program
concert.cpp:57:1: error: stray '\240' in program
concert.cpp:58:1: error: stray '\302' in program
     return 0;

 ^
concert.cpp:58:1: error: stray '\240' in program
concert.cpp:58:1: error: stray '\302' in program
concert.cpp:58: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 Concert 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ă.