mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-03 13:51:50 +03:00
Compare commits
20 Commits
ІО-22/20-П
...
83b275cefd
| Author | SHA1 | Date | |
|---|---|---|---|
| 83b275cefd | |||
| af7af4d6f2 | |||
| a4a3e09735 | |||
| acc2d533cb | |||
| 8013099c36 | |||
| 8100129706 | |||
| 83d98b2982 | |||
| 4af0ab5655 | |||
|
|
07e9fbdc88 | ||
|
|
41aaaf4623 | ||
| 99e9428dba | |||
| fe36219746 | |||
| 896fc1f4d4 | |||
| 7fa667cb2d | |||
| 74a44852af | |||
|
|
75112d90c2 | ||
|
|
e21575fa93 | ||
|
|
cf3d055f64 | ||
|
|
bdf5611f46 | ||
|
|
80de92fa1e |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Java/Lab 1/Lab_1.class
|
||||||
|
.gitignore
|
||||||
|
Java/Lab 2/Lab_2.class
|
||||||
39
Java/Lab 1/Lab_1.java
Normal file
39
Java/Lab 1/Lab_1.java
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
public class Lab_1 {
|
||||||
|
|
||||||
|
public static int protectedInput(String variable_to_read, Scanner input) {
|
||||||
|
int read_variable;
|
||||||
|
do {
|
||||||
|
try {
|
||||||
|
System.out.printf("Enter %s: ", variable_to_read);
|
||||||
|
read_variable = input.nextInt();
|
||||||
|
break;
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.printf("%s must be an integer.\n", variable_to_read.toUpperCase());
|
||||||
|
input.nextLine();
|
||||||
|
}
|
||||||
|
} while (true);
|
||||||
|
return read_variable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int n, m, a, b;
|
||||||
|
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
|
||||||
|
n = protectedInput("n", input);
|
||||||
|
|
||||||
|
m = protectedInput("m", input);
|
||||||
|
|
||||||
|
a = protectedInput("a", input);
|
||||||
|
|
||||||
|
b = protectedInput("b", input);
|
||||||
|
|
||||||
|
input.close();
|
||||||
|
|
||||||
|
float s = ((float) (b + m) / 2) * (m - b + 1) * (n - a + 1);
|
||||||
|
|
||||||
|
System.out.println("S = " + s);
|
||||||
|
}
|
||||||
|
}
|
||||||
106
Java/Lab 2/Lab_2.java
Normal file
106
Java/Lab 2/Lab_2.java
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
public class Lab_2 {
|
||||||
|
|
||||||
|
public static short protectedInput(String inputPrompt, String errorMessage, Scanner input) {
|
||||||
|
short read_variable;
|
||||||
|
|
||||||
|
do {
|
||||||
|
try {
|
||||||
|
System.out.println();
|
||||||
|
System.out.print(inputPrompt);
|
||||||
|
|
||||||
|
read_variable = input.nextShort();
|
||||||
|
break;
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println(errorMessage);
|
||||||
|
input.nextLine();
|
||||||
|
}
|
||||||
|
} while (true);
|
||||||
|
|
||||||
|
return read_variable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String format(int number) {
|
||||||
|
int width = String.valueOf(number).length() + 1;
|
||||||
|
String format = "|%" + width + "d ";
|
||||||
|
|
||||||
|
return format;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double average(short[] row) {
|
||||||
|
short sum = 0;
|
||||||
|
|
||||||
|
for (short element : row) {
|
||||||
|
sum += element;
|
||||||
|
}
|
||||||
|
|
||||||
|
double result = sum / row.length;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
short a, rows = 0, columns = 0;
|
||||||
|
String format;
|
||||||
|
|
||||||
|
Scanner input = new Scanner(System.in);
|
||||||
|
|
||||||
|
a = protectedInput("Input a constant to multipy a matrix by: ",
|
||||||
|
"A constant must be a short-data type integer, try again.", input);
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.println("Input size of the matrix.");
|
||||||
|
|
||||||
|
do {
|
||||||
|
rows = protectedInput("Rows: ",
|
||||||
|
"A number of rows must be a short-data type integer, try again.", input);
|
||||||
|
} while (rows <= 0);
|
||||||
|
|
||||||
|
do {
|
||||||
|
columns = protectedInput("Columns: ",
|
||||||
|
"A number of columns must be a short-data type integer, try again.", input);
|
||||||
|
} while (columns <= 0);
|
||||||
|
|
||||||
|
input.close();
|
||||||
|
|
||||||
|
short[][] matrix_B = new short[rows][columns];
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.println("Matrix B:");
|
||||||
|
|
||||||
|
format = format(rows * columns);
|
||||||
|
|
||||||
|
for (short i = 0; i < rows; i++) {
|
||||||
|
for (short j = 0; j < columns; j++) {
|
||||||
|
matrix_B[i][j] = (short) ((i + 1) * (j + 1));
|
||||||
|
|
||||||
|
System.out.printf(format, matrix_B[i][j]);
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println("|");
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.println("Matrix a×B:");
|
||||||
|
|
||||||
|
format = format(rows * columns * a);
|
||||||
|
|
||||||
|
for (short i = 0; i < matrix_B.length; i++) {
|
||||||
|
for (short j = 0; j < matrix_B[i].length; j++) {
|
||||||
|
matrix_B[i][j] *= (short) (a);
|
||||||
|
|
||||||
|
System.out.printf(format, matrix_B[i][j]);
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println("|");
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println();
|
||||||
|
System.out.println("Averages of each row:");
|
||||||
|
|
||||||
|
for (short[] row : matrix_B) {
|
||||||
|
System.out.println(average(row));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
public class Laba2
|
|
||||||
{
|
|
||||||
public static void Main(string[] args)
|
|
||||||
{
|
|
||||||
const int a = 2;
|
|
||||||
int[,] b = new[,] //створення матриці;
|
|
||||||
{
|
|
||||||
{ 1, 2, 8 },
|
|
||||||
{ 3, 4, 5 },
|
|
||||||
{ 6, 7, 9 }
|
|
||||||
};
|
|
||||||
int rows = b.GetLength(0); //отримання довжини рядків
|
|
||||||
int cols = b.GetLength(1); //отримання довжини стовпців
|
|
||||||
for (int i = 0; i < rows; i++)
|
|
||||||
{
|
|
||||||
int Avg = 0;
|
|
||||||
for (int j = 0; j < cols; j++)
|
|
||||||
{
|
|
||||||
Console.Write(b[i, j] + " "); // перебір матриці для обчислення середнього значення рядка
|
|
||||||
Avg += b[i, j];
|
|
||||||
}
|
|
||||||
Avg = Avg / cols;
|
|
||||||
Console.Write($"-average of row is:{Avg};" );
|
|
||||||
Console.WriteLine(" ");
|
|
||||||
|
|
||||||
}
|
|
||||||
Console.WriteLine(" ");
|
|
||||||
for (int x = 0; x < rows; x++)
|
|
||||||
{
|
|
||||||
for (int y = 0; y < cols; y++)
|
|
||||||
{
|
|
||||||
Console.Write(b[x, y] * a + " "); //виведення матриці, помноженої на константу
|
|
||||||
|
|
||||||
}
|
|
||||||
Console.WriteLine(" ");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
class Lab3
|
|
||||||
{
|
|
||||||
public static void Main(string[] args)
|
|
||||||
{
|
|
||||||
string text = "Вухатий великий синiй слон. Яблуко в саду. Зелене яблуко? Груша. Жовта слива висить у саду!";
|
|
||||||
Console.WriteLine(text );
|
|
||||||
|
|
||||||
// розділяємо текст на окремі речення
|
|
||||||
string[] textSplit = text.Split(new[] { '.', '?', '!' }, StringSplitOptions.RemoveEmptyEntries);
|
|
||||||
|
|
||||||
// обчислюємо кількість слів у кожному реченні та створюємо масив з кількістю слів у реченнях
|
|
||||||
int[] amountOfWords = new int[textSplit.Length];
|
|
||||||
for (int i = 0; i < textSplit.Length; i++)
|
|
||||||
{
|
|
||||||
string[] words = textSplit[i].Trim().Split(' ', StringSplitOptions.RemoveEmptyEntries);
|
|
||||||
amountOfWords[i] = words.Length;
|
|
||||||
}
|
|
||||||
|
|
||||||
// створюємо Dictionary, де ключ - кількість слів у реченні, а значення - речення
|
|
||||||
Dictionary<string, int> sentenceDictionary = new Dictionary<string, int>();
|
|
||||||
for (int i = 0; i < textSplit.Length; i++)
|
|
||||||
{
|
|
||||||
sentenceDictionary.Add(textSplit[i],amountOfWords[i] );
|
|
||||||
}
|
|
||||||
var sortedDict = sentenceDictionary.OrderBy(x => x.Value).ToDictionary(x => x.Key, x => x.Value);
|
|
||||||
|
|
||||||
|
|
||||||
Console.WriteLine(String.Join(";", sortedDict.Keys));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace ConsoleApp1
|
|
||||||
{
|
|
||||||
class Furniture
|
|
||||||
{
|
|
||||||
// 5 полів
|
|
||||||
private string type;
|
|
||||||
private string material;
|
|
||||||
private string color;
|
|
||||||
private int price;
|
|
||||||
private int amount;
|
|
||||||
|
|
||||||
// конструктор з атрибутами
|
|
||||||
public Furniture(string type, string material, string color, int price, int amount)
|
|
||||||
{
|
|
||||||
this.type = type;
|
|
||||||
this.material = material;
|
|
||||||
this.color = color;
|
|
||||||
this.price = price;
|
|
||||||
this.amount = amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
// методи для повернення атрибутів
|
|
||||||
public string getType()
|
|
||||||
{
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string getMaterial()
|
|
||||||
{
|
|
||||||
return material;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string getColor()
|
|
||||||
{
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPrice()
|
|
||||||
{
|
|
||||||
return price;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getAmount()
|
|
||||||
{
|
|
||||||
return amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void Main(string[] args)
|
|
||||||
{
|
|
||||||
|
|
||||||
Furniture[] furnitureArr = {
|
|
||||||
new Furniture("шафа", "дерево", "коричневий", 5000, 2),
|
|
||||||
new Furniture("стiл", "скло", "чорний", 3000, 3),
|
|
||||||
new Furniture("лiжко", "метал", "срiблястий", 8000, 1),
|
|
||||||
new Furniture("диван", "тканина", "сiрий", 10000, 2),
|
|
||||||
new Furniture("стiлець", "метал", "синій", 500, 4)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Сортування масиву за ціною за зростанням
|
|
||||||
var sorted = furnitureArr.OrderBy(ob => ob.price).ToArray();
|
|
||||||
// Вивести відсортований масив
|
|
||||||
Console.WriteLine("Вiдсортований за цiною (за зростанням):");
|
|
||||||
foreach (Furniture f in sorted)
|
|
||||||
{
|
|
||||||
Console.WriteLine(f.getType() + " - " + f.getPrice() + " грн;");
|
|
||||||
}
|
|
||||||
Console.WriteLine(' ');
|
|
||||||
// Сортування масиву за кількістю за спаданням
|
|
||||||
var sortedReversery = furnitureArr.OrderBy(ob => ob.amount).ToArray().Reverse();
|
|
||||||
// Вивести відсортований масив
|
|
||||||
Console.WriteLine("Вiдсортований за кiлькiстю (за спаданням):");
|
|
||||||
foreach (Furniture f in sortedReversery)
|
|
||||||
{
|
|
||||||
Console.Write($"{f.getType()} - {f.getAmount()}; " );
|
|
||||||
}
|
|
||||||
Console.WriteLine(' ');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Formats.Asn1;
|
|
||||||
|
|
||||||
// Визначити ієрархію рухомого складу залізничного транспорту.Створити пасажирський потяг.Порахувати загальну чисельність пасажирів і багажу в потязі.
|
|
||||||
// Провести сортування вагонів потягу за рівнем комфортності. Знайти вагон в потязі, що відповідає заданому діапазону кількості пасажирів.
|
|
||||||
|
|
||||||
|
|
||||||
class Lab6
|
|
||||||
{
|
|
||||||
public static void Main(string[] args)
|
|
||||||
{
|
|
||||||
List<Wagons> wagons = new List<Wagons>(); //створюємо лист-список вагонів;
|
|
||||||
|
|
||||||
// Додаємо вагони за допомогою класу Wagons;
|
|
||||||
wagons.Add(new Wagons.PassengerWagons("Пасажирський", 100, 100, "Вищий", 10));
|
|
||||||
wagons.Add(new Wagons.PassengerWagons("Пасажирський", 50, 48, "Середнiй", 20));
|
|
||||||
wagons.Add(new Wagons.PassengerWagons("Пасажирський", 20, 15, "Низький", 30));
|
|
||||||
wagons.Add(new Wagons.FreightWagons("Вантажний", 10, 10));
|
|
||||||
wagons.Add(new Wagons.FreightWagons("Вантажний", 20, 20));
|
|
||||||
wagons.Add(new Wagons.FreightWagons("Вантажний", 30, 30));
|
|
||||||
|
|
||||||
|
|
||||||
Console.WriteLine("Усi вагони:"); //відображення всіх вагонів;
|
|
||||||
|
|
||||||
foreach (Wagons wagon in wagons)
|
|
||||||
{
|
|
||||||
Console.WriteLine(wagon.GetType() + ": " + wagon.GetPassengers() + " пасажирiв(-а), " + wagon.GetBaggage() +
|
|
||||||
" валiз/контейнерiв, " + wagon.GetComfort() + ", " + wagon.GetAmount() + ";");
|
|
||||||
}
|
|
||||||
|
|
||||||
int amountOfPassangers = 0; //обчислення загальної кількості пасажирів;
|
|
||||||
foreach (Wagons p in wagons)
|
|
||||||
{
|
|
||||||
amountOfPassangers += p.GetPassengers();
|
|
||||||
}
|
|
||||||
|
|
||||||
var sorted = wagons.OrderByDescending(ob => ob.GetComfort()).ToArray(); //сортування вагонів за рівнем комфорту;
|
|
||||||
|
|
||||||
Console.WriteLine("\nКiлькiсть пасажирiв у пасажирському вагонi: " + amountOfPassangers + ";");
|
|
||||||
Console.WriteLine("\nВеддiть мiнiмальну кiлькiсть пасажирiв: ");
|
|
||||||
var minPassangers = Convert.ToInt32(Console.ReadLine());
|
|
||||||
Console.WriteLine("Веддiть максимальну кiлькiсть пасажирiв: ");
|
|
||||||
var maxPassangers = Convert.ToInt32(Console.ReadLine());
|
|
||||||
foreach (Wagons t in wagons)
|
|
||||||
{
|
|
||||||
if (t.GetPassengers() != null && t.GetPassengers() >= minPassangers && t.GetPassengers() <= maxPassangers) //пошук вагону за кількістю пасажирів;
|
|
||||||
{
|
|
||||||
Console.Write(t.GetType() + " - " + t.GetPassengers()+"; ");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
throw (new InvalidOperationException("Немає такого вагону;"));
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
class Wagons
|
|
||||||
{
|
|
||||||
private string type; // тип вагону
|
|
||||||
private int passengers; // кількість пасажирів
|
|
||||||
private int baggage; // кількість багажу в тоннах
|
|
||||||
private string comfort; // рейтиг комфорту вагону
|
|
||||||
private int amount; // кількість вагонів
|
|
||||||
|
|
||||||
public Wagons(string type, int? passengers, int? baggage, string comfort, int amount) //конструктор вагонів;
|
|
||||||
{
|
|
||||||
this.type = type;
|
|
||||||
this.passengers = Convert.ToInt32(passengers);
|
|
||||||
this.baggage = Convert.ToInt32(baggage);
|
|
||||||
this.comfort = comfort;
|
|
||||||
this.amount = amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetType() //геттери атрибутів класу;
|
|
||||||
{
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetPassengers()
|
|
||||||
{
|
|
||||||
return passengers;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int? GetBaggage()
|
|
||||||
{
|
|
||||||
return baggage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetComfort()
|
|
||||||
{
|
|
||||||
return comfort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetAmount()
|
|
||||||
{
|
|
||||||
return amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
// підклас Пасажирський вагон який наслідує батьківський клас Вагони;
|
|
||||||
public class PassengerWagons : Wagons
|
|
||||||
{
|
|
||||||
public PassengerWagons(string type, int passengers, int baggage, string comfort, int amount) : base(type,
|
|
||||||
passengers, baggage, comfort, amount)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// підклас Вантажний вагон який наслідує батьківський клас Вагони;
|
|
||||||
public class FreightWagons : Wagons
|
|
||||||
{
|
|
||||||
public FreightWagons(string type, int baggage, int amount) : base(type, null, baggage, null, amount)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1
READ ME
1
READ ME
@@ -1 +0,0 @@
|
|||||||
Files with lab2,3,4 located in in Lab3. My excuses for confusing you
|
|
||||||
16
Rust/lab_1/Cargo.lock
generated
Normal file
16
Rust/lab_1/Cargo.lock
generated
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "lab_1"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"text_io",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "text_io"
|
||||||
|
version = "0.1.12"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d5f0c8eb2ad70c12a6a69508f499b3051c924f4b1cfeae85bfad96e6bc5bba46"
|
||||||
9
Rust/lab_1/Cargo.toml
Normal file
9
Rust/lab_1/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[package]
|
||||||
|
name = "lab_1"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
text_io = "0.1.12"
|
||||||
15
Rust/lab_1/src/main.rs
Normal file
15
Rust/lab_1/src/main.rs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
fn main() {
|
||||||
|
// use text_io::scan;
|
||||||
|
use text_io::read;
|
||||||
|
|
||||||
|
print!("Input: ");
|
||||||
|
|
||||||
|
// read until a whitespace and try to convert what was read into an i32
|
||||||
|
let a: i32 = read!();
|
||||||
|
|
||||||
|
/* let i: u32;
|
||||||
|
print!("Input: ");
|
||||||
|
scan!("{}", i); */
|
||||||
|
|
||||||
|
println!("You have input: {}", a);
|
||||||
|
}
|
||||||
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.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user