mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2025-06-08 14:59:24 +03:00
Compare commits
No commits in common. "fe97b8dcdef06199f817541cf38110672227f8d6" and "83b275cefd67818a0d89f71977d512065bafc642" have entirely different histories.
fe97b8dcde
...
83b275cefd
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
Rust/lab_1/target
|
Java/Lab 1/Lab_1.class
|
||||||
Rust/lab_2/target
|
.gitignore
|
||||||
|
Java/Lab 2/Lab_2.class
|
||||||
|
@ -2,19 +2,14 @@ fn main() {
|
|||||||
// use text_io::scan;
|
// use text_io::scan;
|
||||||
use text_io::read;
|
use text_io::read;
|
||||||
|
|
||||||
print!("Enter m: ");
|
print!("Input: ");
|
||||||
let m: f32 = read!();
|
|
||||||
|
|
||||||
print!("Enter n: ");
|
// read until a whitespace and try to convert what was read into an i32
|
||||||
let n: f32 = read!();
|
let a: i32 = read!();
|
||||||
|
|
||||||
print!("Enter a: ");
|
/* let i: u32;
|
||||||
let a: f32 = read!();
|
print!("Input: ");
|
||||||
|
scan!("{}", i); */
|
||||||
|
|
||||||
print!("Enter b: ");
|
println!("You have input: {}", a);
|
||||||
let b: f32 = read!();
|
|
||||||
|
|
||||||
let s: f32 = ((b + m) / 2.0) * (m - b + 1.0) * (n - a + 1.0);
|
|
||||||
|
|
||||||
println!("S= {}", s);
|
|
||||||
}
|
}
|
||||||
|
1
Rust/lab_1/target/.rustc_info.json
Normal file
1
Rust/lab_1/target/.rustc_info.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"rustc_fingerprint":1109913473729500203,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/rhinemann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
|
3
Rust/lab_1/target/CACHEDIR.TAG
Normal file
3
Rust/lab_1/target/CACHEDIR.TAG
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Signature: 8a477f597d28d172789f06886806bc55
|
||||||
|
# This file is a cache directory tag created by cargo.
|
||||||
|
# For information about cache directory tags see https://bford.info/cachedir/
|
0
Rust/lab_1/target/debug/.cargo-lock
Normal file
0
Rust/lab_1/target/debug/.cargo-lock
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":9251013656241001069,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,16250147254765824332]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-21a9cdc6153637a5/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1,2 @@
|
|||||||
|
{"message":"unexpected end of macro invocation","code":null,"level":"error","spans":[{"file_name":"src/main.rs","byte_start":179,"byte_end":186,"line_start":8,"line_end":8,"column_start":18,"column_end":25,"is_primary":true,"text":[{"text":" let a: i32 = scan!();","highlight_start":18,"highlight_end":25}],"label":"missing tokens in macro arguments","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"while trying to match meta-variable `$text:expr`","code":null,"level":"note","spans":[{"file_name":"/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs","byte_start":6858,"byte_end":6868,"line_start":225,"line_end":225,"column_start":6,"column_end":16,"is_primary":true,"text":[{"text":" ($text:expr, $($arg:expr),*) => {","highlight_start":6,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: unexpected end of macro invocation\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:8:18\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m8\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m let a: i32 = scan!();\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mmissing tokens in macro arguments\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;10mnote\u001b[0m\u001b[0m: while trying to match meta-variable `$text:expr`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0m/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:225:6\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m225\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m ($text:expr, $($arg:expr),*) => {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m^^^^^^^^^^\u001b[0m\n\n"}
|
||||||
|
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error\u001b[0m\n\n"}
|
@ -0,0 +1 @@
|
|||||||
|
d97c05c8356d63be
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-68601d683e1e8856/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1 @@
|
|||||||
|
1e31ad2d831b958b
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-6de41bec606e8613/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1 @@
|
|||||||
|
03a82760ea6c966b
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-c6f8d37b6207cc41/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
@ -0,0 +1 @@
|
|||||||
|
8860c7066aee2306
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-ec33eeac96f0d2fc/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1 @@
|
|||||||
|
4c291bccd41e84e1
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":12637318739757120569,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-2d13b918f35cc59d/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
@ -0,0 +1 @@
|
|||||||
|
caa96dad0bd7deff
|
@ -0,0 +1 @@
|
|||||||
|
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":3735503092003429423,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-8f0db3acf1dd6458/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
5
Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5.d
Normal file
5
Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
5
Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.d
Normal file
5
Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
5
Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.d
Normal file
5
Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
5
Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.d
Normal file
5
Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
5
Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.d
Normal file
5
Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.rmeta: src/main.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.d: src/main.rs
|
||||||
|
|
||||||
|
src/main.rs:
|
BIN
Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rlib
Normal file
BIN
Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rlib
Normal file
Binary file not shown.
BIN
Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rmeta
Normal file
BIN
Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rmeta
Normal file
Binary file not shown.
BIN
Rust/lab_1/target/debug/deps/libtext_io-8f0db3acf1dd6458.rmeta
Normal file
BIN
Rust/lab_1/target/debug/deps/libtext_io-8f0db3acf1dd6458.rmeta
Normal file
Binary file not shown.
7
Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.d
Normal file
7
Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.d
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rlib: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
5
Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.d
Normal file
5
Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
||||||
|
|
||||||
|
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user