Detalii evaluare #51028336

Rezumat problemă

Se dă un graf turneu cu n noduri. Să se determine un drum elementar care să conțină toate nodurile grafului.

Detalii

Problema Turneu Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #51028336 Utilizator Cioboata Iulia (cioboataiulia)
Fișier turneu.cpp Dimensiune 2.78 KB
Data încărcării 20 Mai 2024, 11:31 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

turneu.cpp:103:2: error: stray '#' in program
 }#include <iostream>

  ^
turneu.cpp:103:3: error: 'include' does not name a type
 }#include <iostream>

   ^
turneu.cpp:106:5: error: redefinition of 'int k'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

     ^
turneu.cpp:5:5: error: 'int k' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

     ^
turneu.cpp:106:7: error: redefinition of 'int ev'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

       ^
turneu.cpp:5:7: error: 'int ev' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

       ^
turneu.cpp:106:10: error: redefinition of 'int as'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

          ^
turneu.cpp:5:10: error: 'int as' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

          ^
turneu.cpp:106:13: error: redefinition of 'int n'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

             ^
turneu.cpp:5:13: error: 'int n' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

             ^
turneu.cpp:106:21: error: redefinition of 'int st [101]'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                     ^
turneu.cpp:5:15: error: 'int st [101]' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

               ^
turneu.cpp:106:33: error: redefinition of 'int a [101][101]'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                 ^
turneu.cpp:5:23: error: 'int a [101][101]' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                       ^
turneu.cpp:106:35: error: redefinition of 'int x'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                   ^
turneu.cpp:5:35: error: 'int x' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                   ^
turneu.cpp:106:37: error: redefinition of 'int y'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                     ^
turneu.cpp:5:37: error: 'int y' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                     ^
turneu.cpp:106:45: error: redefinition of 'int nr [101]'
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                             ^
turneu.cpp:5:39: error: 'int nr [101]' previously declared here
 int k,ev,as,n,st[101],a[101][101],x,y,nr[101];

                                       ^
turneu.cpp: In function 'void matrice()':
turneu.cpp:108:6: error: redefinition of 'void matrice()'
 void matrice()

      ^
turneu.cpp:7:6: error: 'void matrice()' previously defined here
 void matrice()

      ^
turneu.cpp: In function 'void init()':
turneu.cpp:120:6: error: redefinition of 'void init()'
 void init()

      ^
turneu.cpp:19:6: error: 'void init()' previously defined here
 void init()

      ^
turneu.cpp: In function 'int succesor()':
turneu.cpp:125:5: error: redefinition of 'int succesor()'
 int succesor()

     ^
turneu.cpp:24:5: error: 'int succesor()' previously defined here
 int succesor()

     ^
turneu.cpp: In function 'int valid()':
turneu.cpp:135:5: error: redefinition of 'int valid()'
 int valid()

     ^
turneu.cpp:34:5: error: 'int valid()' previously defined here
 int valid()

     ^
turneu.cpp: In function 'int solutie()':
turneu.cpp:146:5: error: redefinition of 'int solutie()'
 int solutie()

     ^
turneu.cpp:45:5: error: 'int solutie()' previously defined here
 int solutie()

     ^
turneu.cpp: In function 'void tipar()':
turneu.cpp:151:6: error: redefinition of 'void tipar()'
 void tipar()

      ^
turneu.cpp:50:6: error: 'void tipar()' previously defined here
 void tipar()

      ^
turneu.cpp: In function 'void bk()':
turneu.cpp:159:6: error: redefinition of 'void bk()'
 void bk()

      ^
turneu.cpp:58:6: error: 'void bk()' previously defined here
 void bk()

      ^
turneu.cpp: In function 'int main()':
turneu.cpp:190:5: error: redefinition of 'int main()'
 int main()

     ^
turneu.cpp:89:5: error: 'int main()' previously defined here
 int main()

     ^

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