#474
VerifLant
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și o succesiune de k
vârfuri. Să se verifice dacă vârfurile din succesiune formează un lanț.
Problema | VerifLant | Operații I/O |
veriflant.in /veriflant.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #2543027 | Utilizator | |
Fișier | veriflant.cpp | Dimensiune | 1.66 KB |
Data încărcării | 27 Mai 2016, 11:11 | Scor / rezultat | Eroare de compilare |
veriflant.cpp:47:11: error: redefinition of 'std::ifstream f' ifstream f("veriflant.in"); ^ veriflant.cpp:3:10: error: 'std::ifstream f' previously declared here ifstream f("veriflant.in"); ^ veriflant.cpp:48:11: error: redefinition of 'std::ofstream g' ofstream g("veriflant.out"); ^ veriflant.cpp:4:10: error: 'std::ofstream g' previously declared here ofstream g("veriflant.out"); ^ veriflant.cpp:49:15: error: redefinition of 'int a [101][101]' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:5: error: 'int a [101][101]' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:17: error: redefinition of 'int n' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:17: error: 'int n' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:19: error: redefinition of 'int m' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:19: error: 'int m' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:21: error: redefinition of 'int x' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:21: error: 'int x' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:23: error: redefinition of 'int y' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:23: error: 'int y' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:30: error: redefinition of 'int v [201]' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:25: error: 'int v [201]' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:32: error: redefinition of 'int nr' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:32: error: 'int nr' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:35: error: redefinition of 'int i' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:35: error: 'int i' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:37: error: redefinition of 'int j' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:37: error: 'int j' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:39: error: redefinition of 'int k' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:39: error: 'int k' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:49:41: error: redefinition of 'int b' int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp:5:41: error: 'int b' previously declared here int a[101][101],n,m,x,y,v[201],nr,i,j,k,b; ^ veriflant.cpp: In function 'int lant(int*, int)': veriflant.cpp:50:5: error: redefinition of 'int lant(int*, int)' int lant(int v[201], int n) ^ veriflant.cpp:6:5: error: 'int lant(int*, int)' previously defined here int lant(int v[201], int n) ^ veriflant.cpp: In function 'int main()': veriflant.cpp:63:5: error: redefinition of 'int main()' int main() ^ veriflant.cpp:19:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifLant 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ă.