Output
$ rustc CentralLimitTheorem.rs
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:31
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:38
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:13:5
|
13 | if args.len() != 3 {
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `exit` in this scope
--> CentralLimitTheorem.rs:15:3
|
15 | exit(1);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::process::exit;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:17:29
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:17:51
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:18:34
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:18:56
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `random` in this scope
--> CentralLimitTheorem.rs:36:13
|
36 | sum += random(0,sampleMax) * (sampleMax) as f64;
| ^^^^^^ not found in this scope
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:41:15
|
41 | meanCounts[(mean) as isize] += 1;
| ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:48:57
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error: aborting due to 11 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.
$ rustc CentralLimitTheorem.rs
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:31
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:38
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:13:5
|
13 | if args.len() != 3 {
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `exit` in this scope
--> CentralLimitTheorem.rs:15:3
|
15 | exit(1);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::process::exit;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:17:29
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:17:51
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:18:34
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:18:56
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `random` in this scope
--> CentralLimitTheorem.rs:36:13
|
36 | sum += random(0,sampleMax) * (sampleMax) as f64;
| ^^^^^^ not found in this scope
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:41:15
|
41 | meanCounts[(mean) as isize] += 1;
| ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:48:57
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error: aborting due to 11 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.
$ rustc CentralLimitTheorem.rs
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:31
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:38
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:13:5
|
13 | if args.len() != 3 {
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `exit` in this scope
--> CentralLimitTheorem.rs:15:3
|
15 | exit(1);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::process::exit;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:17:29
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:17:51
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:18:34
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:18:56
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `random` in this scope
--> CentralLimitTheorem.rs:36:13
|
36 | sum += random(0,sampleMax) * (sampleMax) as f64;
| ^^^^^^ not found in this scope
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:41:15
|
41 | meanCounts[(mean) as isize] += 1;
| ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:48:57
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error: aborting due to 11 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.
$ rustc CentralLimitTheorem.rs
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:31
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error: unknown format trait `d`
--> CentralLimitTheorem.rs:48:38
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:13:5
|
13 | if args.len() != 3 {
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `exit` in this scope
--> CentralLimitTheorem.rs:15:3
|
15 | exit(1);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::process::exit;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:17:29
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:17:51
|
17 | let mut sampleSize:isize = Utils.stoiWithDefault(args[1], 10);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find value `Utils` in this scope
--> CentralLimitTheorem.rs:18:34
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^^ not found in this scope
error[E0425]: cannot find value `args` in this scope
--> CentralLimitTheorem.rs:18:56
|
18 | let mut numberOfSamples:isize = Utils.stoiWithDefault(args[2], 100);
| ^^^^ not found in this scope
|
help: consider importing this function
|
8 + use std::env::args;
|
error[E0425]: cannot find function `random` in this scope
--> CentralLimitTheorem.rs:36:13
|
36 | sum += random(0,sampleMax) * (sampleMax) as f64;
| ^^^^^^ not found in this scope
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:41:15
|
41 | meanCounts[(mean) as isize] += 1;
| ^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error[E0277]: the type `[isize]` cannot be indexed by `isize`
--> CentralLimitTheorem.rs:48:57
|
48 | println!("{}", format!("{0:d}\t{1:d}", i, meanCounts[i]));
| ^ slice indices are of type `usize` or ranges of `usize`
|
= help: the trait `SliceIndex<[isize]>` is not implemented for `isize`
= help: the trait `SliceIndex<[T]>` is implemented for `usize`
= note: required for `Vec<isize>` to implement `Index<isize>`
error: aborting due to 11 previous errors
Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.