#582
Turneu
Se dă un graf turneu cu n
noduri. Să se determine un drum elementar care să conțină toate nodurile grafului.
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 | |
Fișier | turneu.cpp | Dimensiune | 2.78 KB |
Data încărcării | 20 Mai 2024, 11:31 | Scor / rezultat | Eroare de 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() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Turneu face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.