Загрузка данных
smaugmol@us-o4:~$ git clone -b develop ssh://git@git-ssh.21-school.ru:2222/students_repo/myrcelli/D02T02_ID_1577482-1.git
fatal: destination path 'D02T02_ID_1577482-1' already exists and is not an empty directory.
smaugmol@us-o4:~$ git clone -b develop ssh://git@git-ssh.21-school.ru:2222/students_repo/myrcelli/D02T02_ID_1577482-1.git
Cloning into 'D02T02_ID_1577482-1'...
remote: Enumerating objects: 202, done.
remote: Counting objects: 100% (202/202), done.
remote: Compressing objects: 100% (128/128), done.
remote: Total 202 (delta 85), reused 163 (delta 64), pack-reused 0 (from 0)
Receiving objects: 100% (202/202), 111.58 KiB | 6.97 MiB/s, done.
Resolving deltas: 100% (85/85), done.
smaugmol@us-o4:~$ cd ~/D02T02_ID_1577482-1
smaugmol@us-o4:~/D02T02_ID_1577482-1$ src
WARNING:root:could not open file '/etc/apt/sources.list': [Errno 13] Permission denied: '/etc/apt/sources.list'
Command 'src' not found, but can be installed with:
apt install simple-revision-control
Please ask your administrator.
smaugmol@us-o4:~/D02T02_ID_1577482-1$ cd src
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Warrior -o hello.с hello
gcc: error: unrecognized command-line option ‘-Warrior’; did you mean ‘-Werror’?
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror -o hello.с hello
/usr/bin/ld: cannot find hello: No such file or directory
collect2: error: ld returned 1 exit status
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror hello.с -o hello
/usr/bin/ld: cannot find hello.с: No such file or directory
collect2: error: ld returned 1 exit status
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ls
arithmetic.c crack.c float_compare.c hello.c important_function.c max.c named_hello.c
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc hello.c
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ls
a.out arithmetic.c crack.c float_compare.c hello.c important_function.c max.c named_hello.c
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ rm a.out
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc hello.c -o
gcc: error: missing filename after ‘-o’
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc hello.c -o hello
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ls
arithmetic.c crack.c float_compare.c hello hello.c important_function.c max.c named_hello.c
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ rm hello
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror hello.c -o hello
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ls
arithmetic.c crack.c float_compare.c hello hello.c important_function.c max.c named_hello.c
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./hello
Привет, ИИ!smaugmol@us-o4:~/D02T02_ID_1577^C
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror named_hello -o named_hello
gcc: fatal error: input file ‘named_hello’ is the same as output file
compilation terminated.
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror named_hello.c -o named_hello
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./named_hello
0
Привет, 0!smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./named_hello
124
Привет, 124!smaugmol@us-o4:~/D02T02_ID_157gcc -Wall -Wextra -Werror arithmetic.c -o arithmetic
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./arithmetic
8 2
10 6 16 4smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./arithmetic
1 0
1 1 0 n/asmaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./arithmetic
0 1
1 -1 0 0smaugmol@us-o4:~/D02T02_ID_1577482gcc -Wall -Wextra -Werror arithmetic.c -o arithmetic
./named_hello^C
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror max.c -o max
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./max
3 2
3smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./max
-5 1
1smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./max
b
n/asmaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./max
10 10
10smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror important_function.c -o important_function
/usr/bin/ld: /tmp/cc6J6l0C.o: in function `calc':
important_function.c:(.text+0x17f): undefined reference to `pow'
/usr/bin/ld: important_function.c:(.text+0x19e): undefined reference to `cbrt'
/usr/bin/ld: important_function.c:(.text+0x22b): undefined reference to `pow'
collect2: error: ld returned 1 exit status
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror important_function.c -o important_function -lm
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./important_function
1
-2070.4smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./important_function
0
n/asmaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./important_function
13.4
62.1smaugmol@us-o4:~/D02T02_ID_1577482-1/sgcc -Wall -Wextra -Werror float_compare.c -o float_compare -lm
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./float_compare
OK!smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ^C
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ gcc -Wall -Wextra -Werror crack.c -o 7 -lm
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./crack
bash: ./crack: No such file or directory
smaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./7
1 1
GOTCHAsmaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./7
10 10
MISSsmaugmol@us-o4:~/D02T02_ID_1577482-1/src$ ./7
5 5
MISSsmaugmol@us-o4:~/D02T02_ID_1577482-1/src$