This commit is contained in:
parent
83b275cefd
commit
74209977bc
.gitignore
Rust/lab_1
src
target/debug
.fingerprint/lab_1-21a9cdc6153637a5
incremental
lab_1-1er4lyjl850do
s-gkpt9baoa6-6nr8lz-1puqr9806njm9
s-gkpt9baoa6-6nr8lz.locklab_1-1qnmvvotl37nd
s-gkpt7tcrn4-1m9zmtw-ws356vguw9pr
11cbybk6dpe8tjxt.o19qwywecngepnoto.o1b1lt3zumhpe9lwd.o1i0cqyf86fbbpktd.o1m1y2g57afe3ow12.o1y4ye1400ab5dxlo.o244zqyproswy4j1.o2453j7r3p7jfdh2h.o2a198ocudkmtr38y.o2cml6n8fzdvii2z0.o2gi5r8gy2r2499i2.o2iy8lm4rhp9xkqcu.o2ldpp7a0timr7ay5.o2ne7aijrc3o7f1w2.o2ot0hdz5h0mfxww0.o2uusvrq5jh2gh6ar.o3255d38dy6fnol0a.o32z73b0v1ecy58nn.o3bfhpbc879laryce.o3f6p4t7laxy5yzr1.o3tegk4btbfsrqu9l.o3tey0nf005t0xew8.o3tx9wn1h9ljlnc0u.o3uue0r99n4my0zqv.o3yotkcaifcutuidt.o435s13w7yt7y6lmx.o46ah04otyw2wjny8.o4cji54m1ju2g541d.o4eqfisklzu79jdyb.o4gu31enzp9lbjrms.o4iydm1hznpyu6fea.o4jvf5gglul3pqoap.o4krkiq10wlcrbxgh.o4w2muy9d1vdkqzez.o4xhpgvoubd8m5pe5.o54n9cu6g245ayvfr.o57u2rz13g699msdr.o58w4vpcsugsyklmr.o5blw4cu0h27xx4ci.o68w61z91vos8zc.oa20dzsm6x2mrw7b.oacmre3v79ru5jy5.odep-graph.binquery-cache.binr66u7ffo2ru1eh9.orykhfgwnp0rsl3h.ospkefe7a46hoqag.ouqlwo397n5v4ec9.ouxqcpqhmyjvavtv.owork-products.bin
s-gkpt7tcrn4-1m9zmtw.locks-gkpt8jgyog-114s5wj-working
11cbybk6dpe8tjxt.o19qwywecngepnoto.o1b1lt3zumhpe9lwd.o1i0cqyf86fbbpktd.o1m1y2g57afe3ow12.o1y4ye1400ab5dxlo.o244zqyproswy4j1.o2453j7r3p7jfdh2h.o2a198ocudkmtr38y.o2cml6n8fzdvii2z0.o2gi5r8gy2r2499i2.o2iy8lm4rhp9xkqcu.o2ldpp7a0timr7ay5.o2ne7aijrc3o7f1w2.o2ot0hdz5h0mfxww0.o2uusvrq5jh2gh6ar.o3255d38dy6fnol0a.o32z73b0v1ecy58nn.o3bfhpbc879laryce.o3f6p4t7laxy5yzr1.o3tegk4btbfsrqu9l.o3tey0nf005t0xew8.o3tx9wn1h9ljlnc0u.o3uue0r99n4my0zqv.o3yotkcaifcutuidt.o435s13w7yt7y6lmx.o46ah04otyw2wjny8.o4cji54m1ju2g541d.o4eqfisklzu79jdyb.o4gu31enzp9lbjrms.o4iydm1hznpyu6fea.o4jvf5gglul3pqoap.o4krkiq10wlcrbxgh.o4w2muy9d1vdkqzez.o4xhpgvoubd8m5pe5.o54n9cu6g245ayvfr.o57u2rz13g699msdr.o58w4vpcsugsyklmr.o5blw4cu0h27xx4ci.o68w61z91vos8zc.oa20dzsm6x2mrw7b.o
|
@ -1,3 +1 @@
|
|||
Java/Lab 1/Lab_1.class
|
||||
.gitignore
|
||||
Java/Lab 2/Lab_2.class
|
||||
Rust/
|
|
@ -2,14 +2,19 @@ fn main() {
|
|||
// use text_io::scan;
|
||||
use text_io::read;
|
||||
|
||||
print!("Input: ");
|
||||
print!("Enter m: ");
|
||||
let m: f32 = read!();
|
||||
|
||||
// read until a whitespace and try to convert what was read into an i32
|
||||
let a: i32 = read!();
|
||||
print!("Enter n: ");
|
||||
let n: f32 = read!();
|
||||
|
||||
/* let i: u32;
|
||||
print!("Input: ");
|
||||
scan!("{}", i); */
|
||||
print!("Enter a: ");
|
||||
let a: f32 = read!();
|
||||
|
||||
println!("You have input: {}", a);
|
||||
print!("Enter b: ");
|
||||
let b: f32 = read!();
|
||||
|
||||
let s: f32 = ((b + m) / 2.0) * (m - b + 1.0) * (n - a + 1.0);
|
||||
|
||||
println!("S= {}", s);
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
acee4a4c5ba7cfc8
|
|
@ -1,2 +0,0 @@
|
|||
{"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"}
|
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.
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…
Reference in New Issue