Орлин качи първо решение на 25.11.2026 23:47 (преди 5 дена)
Няколко неправилни очаквания за брой места, грешки и групови резервации.
Към профила на Орлин Грънчаров
Compiling solution v0.1.0 (/tmp/d20261126-2321049-1pekofv/solution) error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:7:18 | 7 | let ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:14:18 | 14 | let ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:16:20 | 16 | let emti : Cinema = Cinema::new(0); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:27:22 | 27 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:38:22 | 38 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:53:22 | 53 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope error[E0412]: cannot find type `Cinema` in this scope --> src/lib.rs:65:22 | 65 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ not found in this scope warning: unused import: `super::*` --> src/lib.rs:3:9 | 3 | use super::*; | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:7:27 | 7 | let ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:14:27 | 14 | let ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:16:29 | 16 | let emti : Cinema = Cinema::new(0); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:22:45 | 22 | assert_eq!(ts.is_available(10), Err(BookingError::InvalidSeat)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:27:31 | 27 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:32:39 | 32 | assert_eq!(ts.reserve(5), Err(BookingError::AlreadyReserved)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:38:31 | 38 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:46:47 | 46 | assert_eq!(ts.reserve_group(1,3), Err(BookingError::AlreadyReserved)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:47:48 | 47 | assert_eq!(ts.reserve_group(8,10), Err(BookingError::InvalidSeat)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:48:47 | 48 | assert_eq!(ts.reserve_group(0,0), Err(BookingError::EmptyGroup)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:53:31 | 53 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:58:44 | 58 | assert_eq!(ts.is_available(5), Err(BookingError::NotReserved)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:59:39 | 59 | assert_eq!(ts.cancel(10), Err(BookingError::InvalidSeat)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` error[E0433]: failed to resolve: use of undeclared type `Cinema` --> src/lib.rs:65:31 | 65 | let mut ts : Cinema = Cinema::new(10); | ^^^^^^ use of undeclared type `Cinema` error[E0433]: failed to resolve: use of undeclared type `BookingError` --> src/lib.rs:68:47 | 68 | assert_eq!(ts.reserve_group(4,7), Err(BookingError::AlreadyReserved)); | ^^^^^^^^^^^^ use of undeclared type `BookingError` Some errors have detailed explanations: E0412, E0433. For more information about an error, try `rustc --explain E0412`. warning: `solution` (lib test) generated 1 warning error: could not compile `solution` (lib test) due to 22 previous errors; 1 warning emitted
Няколко неправилни очаквания за брой места, грешки и групови резервации.