#545
Euler
Se dă un graf neorientat cu n
vârfuri care este conex și are gradele tuturor vârfurilor pare. Determinați un ciclu eulerian.
Problema | Euler | Operații I/O |
euler.in /euler.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48739924 | Utilizator | |
Fișier | euler.cpp | Dimensiune | 502 B |
Data încărcării | 03 Februarie 2024, 21:53 | Scor / rezultat | Eroare de compilare |
euler.cpp:5:12: warning: missing terminating " character [enabled by default] ofstream g("euler.out); ^ euler.cpp:5:1: error: missing terminating " character ofstream g("euler.out); ^ euler.cpp:6:7: error: 'm' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:9: error: 'a' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:21: error: 'x' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:23: error: 'y' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:25: error: 'l' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:27: error: 'sol' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:36: error: 'nr' has not been declared int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp:6:38: error: expected ')' before ';' token int n,m,a[100][100],x,y,l,sol[100],nr; ^ euler.cpp: In function 'void euler(int)': euler.cpp:9:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ euler.cpp:11:12: error: 'a' was not declared in this scope if(a[i][vf]==1) ^ euler.cpp:17:5: error: 'sol' was not declared in this scope sol[++nr]=vf; ^ euler.cpp:17:11: error: 'nr' was not declared in this scope sol[++nr]=vf; ^ euler.cpp: In function 'int main()': euler.cpp:21:8: error: 'n' was not declared in this scope f>>n; ^ euler.cpp:22:14: error: 'x' was not declared in this scope while(f>>x>>y) ^ euler.cpp:22:17: error: 'y' was not declared in this scope while(f>>x>>y) ^ euler.cpp:23:9: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1; ^ euler.cpp:25:8: error: 'nr' was not declared in this scope g<<nr<<endl; ^ euler.cpp:27:12: error: 'sol' was not declared in this scope g<<sol[i]<<' '; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Euler 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ă.