#474
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 | #57539861 | Utilizator | |
Fișier | veriflant.cpp | Dimensiune | 693 B |
Data încărcării | 03 Aprilie 2025, 19:44 | Scor / rezultat | Eroare de compilare |
veriflant.cpp:2:13: error: unable to find numeric literal operator 'operator"" a' #define DIM 101a ^ veriflant.cpp:4:7: note: in expansion of macro 'DIM' int a[DIM][DIM], v[DIM], f[DIM]; ^ veriflant.cpp:2:13: error: unable to find numeric literal operator 'operator"" a' #define DIM 101a ^ veriflant.cpp:4:12: note: in expansion of macro 'DIM' int a[DIM][DIM], v[DIM], f[DIM]; ^ veriflant.cpp:2:13: error: unable to find numeric literal operator 'operator"" a' #define DIM 101a ^ veriflant.cpp:4:20: note: in expansion of macro 'DIM' int a[DIM][DIM], v[DIM], f[DIM]; ^ veriflant.cpp:2:13: error: unable to find numeric literal operator 'operator"" a' #define DIM 101a ^ veriflant.cpp:4:28: note: in expansion of macro 'DIM' int a[DIM][DIM], v[DIM], f[DIM]; ^ veriflant.cpp: In function 'int main()': veriflant.cpp:12:1: error: 'a' was not declared in this scope a[x][y] = a[y][x] = 1; ^ veriflant.cpp:18:6: error: 'v' was not declared in this scope fin>>v[i]; ^ veriflant.cpp:21:6: error: 'a' was not declared in this scope if ( a[ v[i-1] ][ v[i] ] == 0) { ^ veriflant.cpp:21:9: error: 'v' was not declared in this scope if ( a[ v[i-1] ][ v[i] ] == 0) { ^ veriflant.cpp:30:1: error: 'f' was not declared in this scope f[i] = 0; ^ veriflant.cpp:33:1: error: 'f' was not declared in this scope f[ v[i] ]++; ^ veriflant.cpp:33:4: error: 'v' was not declared in this scope f[ v[i] ]++; ^
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ă.