Detalii evaluare #54126641

Rezumat problemă

Se dă un număr natural n. Construiți toate grafurile neorientate cu n vârfuri.

Detalii

Problema GenGraf Operații I/O gengraf.in/gengraf.out
Limita timp 1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #54126641 Utilizator Melinte Tudor (Melinte_Tudor)
Fișier gengraf.cpp Dimensiune 1022 B
Data încărcării 20 Noiembrie 2024, 12:01 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

gengraf.cpp:10:5: error: stray '\302' in program
         int p=1,i,j;

     ^
gengraf.cpp:10:5: error: stray '\240' in program
gengraf.cpp:10:5: error: stray '\302' in program
gengraf.cpp:10:5: error: stray '\240' in program
gengraf.cpp:11:5: error: stray '\302' in program
         for(i=1; i<=n; i++)

     ^
gengraf.cpp:11:5: error: stray '\240' in program
gengraf.cpp:11:5: error: stray '\302' in program
gengraf.cpp:11:5: error: stray '\240' in program
gengraf.cpp:12:9: error: stray '\302' in program
                 for(j=i+1; j<=n; j++)

         ^
gengraf.cpp:12:9: error: stray '\240' in program
gengraf.cpp:12:9: error: stray '\302' in program
gengraf.cpp:12:9: error: stray '\240' in program
gengraf.cpp:12:9: error: stray '\302' in program
gengraf.cpp:12:9: error: stray '\240' in program
gengraf.cpp:12:9: error: stray '\302' in program
gengraf.cpp:12:9: error: stray '\240' in program
gengraf.cpp:13:13: error: stray '\302' in program
                     a[i][j]=a[j][i]=st[p++];

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

     ^
gengraf.cpp:14:5: error: stray '\240' in program
gengraf.cpp:14:5: error: stray '\302' in program
gengraf.cpp:14:5: error: stray '\240' in program
gengraf.cpp:15:9: error: stray '\302' in program
            

         ^
gengraf.cpp:15:9: error: stray '\240' in program
gengraf.cpp:15:9: error: stray '\302' in program
gengraf.cpp:15:9: error: stray '\240' in program
gengraf.cpp:17:9: error: stray '\302' in program
                 for(j=1; j<=n; j++)

         ^
gengraf.cpp:17:9: error: stray '\240' in program
gengraf.cpp:17:9: error: stray '\302' in program
gengraf.cpp:17:9: error: stray '\240' in program
gengraf.cpp:17:9: error: stray '\302' in program
gengraf.cpp:17:9: error: stray '\240' in program
gengraf.cpp:17:9: error: stray '\302' in program
gengraf.cpp:17:9: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
                         fout<<a[i][j]<<" ";

             ^
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:18:13: error: stray '\302' in program
gengraf.cpp:18:13: error: stray '\240' in program
gengraf.cpp:19:9: error: stray '\302' in program
                 fout<<'\n';

         ^
gengraf.cpp:19:9: error: stray '\240' in program
gengraf.cpp:19:9: error: stray '\302' in program
gengraf.cpp:19:9: error: stray '\240' in program
gengraf.cpp:19:9: error: stray '\302' in program
gengraf.cpp:19:9: error: stray '\240' in program
gengraf.cpp:19:9: error: stray '\302' in program
gengraf.cpp:19:9: error: stray '\240' in program
gengraf.cpp:20:9: error: stray '\302' in program
            

         ^
gengraf.cpp:20:9: error: stray '\240' in program
gengraf.cpp:20:9: error: stray '\302' in program
gengraf.cpp:20:9: error: stray '\240' in program
gengraf.cpp:22:5: error: stray '\302' in program
         fout<<'\n';

     ^
gengraf.cpp:22:5: error: stray '\240' in program
gengraf.cpp:22:5: error: stray '\302' in program
gengraf.cpp:22:5: error: stray '\240' in program
gengraf.cpp:28:5: error: stray '\302' in program
         for(int i=0; i<=1; i++)

     ^
gengraf.cpp:28:5: error: stray '\240' in program
gengraf.cpp:28:5: error: stray '\302' in program
gengraf.cpp:28:5: error: stray '\240' in program
gengraf.cpp:29:9: error: stray '\302' in program
            

         ^
gengraf.cpp:29:9: error: stray '\240' in program
gengraf.cpp:29:9: error: stray '\302' in program
gengraf.cpp:29:9: error: stray '\240' in program
gengraf.cpp:31:9: error: stray '\302' in program
                 st[k]=i;

         ^
gengraf.cpp:31:9: error: stray '\240' in program
gengraf.cpp:31:9: error: stray '\302' in program
gengraf.cpp:31:9: error: stray '\240' in program
gengraf.cpp:31:9: error: stray '\302' in program
gengraf.cpp:31:9: error: stray '\240' in program
gengraf.cpp:31:9: error: stray '\302' in program
gengraf.cpp:31:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
                     if(k==n*(n-1)/2)

         ^
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:32:9: error: stray '\302' in program
gengraf.cpp:32:9: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
                         afis(k);

             ^
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:33:13: error: stray '\302' in program
gengraf.cpp:33:13: error: stray '\240' in program
gengraf.cpp:34:9: error: stray '\302' in program
                 else

         ^
gengraf.cpp:34:9: error: stray '\240' in program
gengraf.cpp:34:9: error: stray '\302' in program
gengraf.cpp:34:9: error: stray '\240' in program
gengraf.cpp:34:9: error: stray '\302' in program
gengraf.cpp:34:9: error: stray '\240' in program
gengraf.cpp:34:9: error: stray '\302' in program
gengraf.cpp:34:9: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
                         bkt(k+1);

             ^
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:35:13: error: stray '\302' in program
gengraf.cpp:35:13: error: stray '\240' in program
gengraf.cpp:36:9: error: stray '\302' in program
            

         ^
gengraf.cpp:36:9: error: stray '\240' in program
gengraf.cpp:36:9: error: stray '\302' in program
gengraf.cpp:36:9: error: stray '\240' in program
gengraf.cpp:41:5: error: stray '\302' in program
         fin>>n;

     ^
gengraf.cpp:41:5: error: stray '\240' in program
gengraf.cpp:41:5: error: stray '\302' in program
gengraf.cpp:41:5: error: stray '\240' in program
gengraf.cpp:42:5: error: stray '\302' in program
         int p=1;

     ^
gengraf.cpp:42:5: error: stray '\240' in program
gengraf.cpp:42:5: error: stray '\302' in program
gengraf.cpp:42:5: error: stray '\240' in program
gengraf.cpp:43:5: error: stray '\302' in program
         for(int i=1; i<=n*(n-1)/2; i++)

     ^
gengraf.cpp:43:5: error: stray '\240' in program
gengraf.cpp:43:5: error: stray '\302' in program
gengraf.cpp:43:5: error: stray '\240' in program
gengraf.cpp:44:9: error: stray '\302' in program
                 p*=2;

         ^
gengraf.cpp:44:9: error: stray '\240' in program
gengraf.cpp:44:9: error: stray '\302' in program
gengraf.cpp:44:9: error: stray '\240' in program
gengraf.cpp:44:9: error: stray '\302' in program
gengraf.cpp:44:9: error: stray '\240' in program
gengraf.cpp:44:9: error: stray '\302' in program
gengraf.cpp:44:9: error: stray '\240' in program
gengraf.cpp:45:5: error: stray '\302' in program
         fout<<p<<'\n';

     ^
gengraf.cpp:45:5: error: stray '\240' in program
gengraf.cpp:45:5: error: stray '\302' in program
gengraf.cpp:45:5: error: stray '\240' in program
gengraf.cpp:46:5: error: stray '\302' in program
         bkt(1);

     ^
gengraf.cpp:46:5: error: stray '\240' in program
gengraf.cpp:46:5: error: stray '\302' in program
gengraf.cpp:46:5: error: stray '\240' in program
gengraf.cpp:51:5: error: stray '\302' in program
         return 0;

     ^
gengraf.cpp:51:5: error: stray '\240' in program
gengraf.cpp:51:5: error: stray '\302' in program
gengraf.cpp:51:5: 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 GenGraf 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ă.