evgueni-petrov-aka-espetrov / 18203 Goto Github PK
View Code? Open in Web Editor NEWProgramming in C -- group 18203 -- practice
Programming in C -- group 18203 -- practice
Line 21 in c29e99e
if (...) {
...
} else {
...
}
Line 2 in daae167
Line 79 in 2e71a63
Line 21 in 332697d
Line 10 in 20dd0da
18203/Nalepova/0/Исходный код.cpp
Line 25 in e1e34e6
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\0>cl /RTC1 /W4 "Исходный код.cpp"
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
Исходный код.cpp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale(341): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
Исходный код.cpp(51): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
Исходный код.cpp(56): warning C4244: 'argument': conversion from 'int' to 'short', possible loss of data
Исходный код.cpp(56): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
Исходный код.cpp(64): warning C4244: 'argument': conversion from 'int' to 'short', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(359): warning C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
"/out:Исходный код.exe"
"Исходный код.obj"
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\0>......\labs\0-num-sys\testlab0.exe "Исходный код.exe"
KOI FIT NSU Lab Tester (c) 2009-2014 by Evgueni Petrov
Testing Lab 0 Number Systems...
TEST 1/30: PASSED
TEST 2/30: PASSED
TEST 3/30: FAILED
:-(
Exe ╚ёїюфэ√щ ъюф.exe failed for input file in.txt in the current directory.
Please fix and try again.
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\0>type in.txt
2 2
2.01
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\0>type out.txt
2.01
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\0>
Line 13 in c29e99e
Line 35 in 2e71a63
c:\Users\espetrov\WorkingPlace\Преп\18203\Aldonin\1.1>cl /W4 /D_CRT_SECURE_NO_WARNINGS /RTC1 *.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
lab1_1.c
lab1_1.c(43): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
lab1_1.c(75): warning C4244: 'initializing': conversion from 'int' to 'unsigned char', possible loss of data
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:lab1_1.exe
lab1_1.obj
c:\Users\espetrov\WorkingPlace\Преп\18203\Aldonin\1.1>......\labs\1-1-rabin-karp\testLab11.exe lab1_1.exe
KOI FIT NSU Lab Tester (c) 2009-2014 by Evgueni Petrov
Testing Lab 1-1 Rabin-Karp...
TEST 1/19: PASSED
TEST 2/19: PASSED
TEST 3/19:
Exe "lab1_1.exe" terminated with exception 0x80000003
:-(
Exe lab1_1.exe failed for input file in.txt in the current directory.
Please fix and try again.
Line 83 in 2c50ce4
Line 112 in c29e99e
Line 110 in be0a33a
Line 58 in be0a33a
Line 2 in c29e99e
Line 9 in daae167
Line 6 in 20dd0da
Line 86 in 2e71a63
Line 13 in c29e99e
#define MAX_NUMBER_OF_DIGITS 57
, а лучше -- enum {MAX_NUMBER_OF_DIGITS=57};
Line 11 in 0940c8a
Line 36 in 332697d
Line 16 in c29e99e
Line 41 in daae167
18203/Kondratiev/3.0/HeapSort.cpp
Line 11 in c29e99e
Line 1 in c29e99e
Line 18 in 0940c8a
Line 5 in be0a33a
Line 77 in be0a33a
nums2.3.1.c(50) : warning C4701: potentially uninitialized local variable 'result' used
nums2.3.1.c(127) : warning C4701: potentially uninitialized local variable 'pointplace' used
nums2.3.1.c(91) : warning C4701: potentially uninitialized local variable 'number2' used
18203/Kondratiev/3.1/QuickSort.cpp
Line 9 in c29e99e
Line 53 in 332697d
Line 26 in c29e99e
Через указатель передаем изменяемые формальные параметры
Через указатель на const передаем большие неизменяемые формальные параметры (строки, массивы)
Небольшие неизменяемые формальные параметры (int, double и т.п.) передаем по значению
Line 92 in be0a33a
18203/Kondratiev/3.0/HeapSort.cpp
Line 15 in c29e99e
перевод строки записывается \n
строка с форматом в scanf -- это мини-программа чтения из потока stdin, составленная из следующих команд:
Поэтому scanf("%d /n", &length);
считывает length, пропускает все пробельные символы, и либо удаляет из stdin символы / и n (если есть), либо просто прекращает чтение из stdin.
В лабе про сортировку все это можно заменить на один scanf("%d").
Line 42 in be0a33a
Line 26 in c29e99e
Line 5 in 20dd0da
Line 58 in 2e71a63
Line 15 in 20dd0da
c:\Users\espetrov\WorkingPlace\Преп\18203\Aldonin\1.0>......\labs\1-0-boyer-moore\testLab10.exe lab1.exe
KOI FIT NSU Lab Tester (c) 2009-2014 by Evgueni Petrov
Testing Lab 1-0 Boyer-Moore...
TEST 1/19: wrong output -- FAILED
:-(
Exe lab1.exe failed for input file in.txt in the current directory.
Please fix and try again.
c:\Users\espetrov\WorkingPlace\Преп\18203\Aldonin\1.0>type in.txt
example
this is simple example
c:\Users\espetrov\WorkingPlace\Преп\18203\Aldonin\1.0>type out.txt
7 14 15 14 13 12 11 21 23 22 21 20 19 18 17
Line 46 in c8c9a8d
Line 111 in c29e99e
18203/Nalepova/3.0/quick_sort.cpp
Line 36 in be0a33a
Line 10 in 332697d
18203/Kondratieva/3.0/heapSort.c
Line 18 in c8c9a8d
Line 4 in 20dd0da
Line 2 in 20dd0da
Line 34 in 332697d
Line 37 in e1e34e6
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\3.0>cl /RTC1 /W4 heap.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
heap.cpp
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:heap.exe
heap.obj
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\3.0>......\labs\3-0-heap\testLab30.exe heap.exe
KOI FIT NSU Lab Tester (c) 2009-2014 by Evgueni Petrov
Testing Lab 3-x Quick Sort or Heap Sort...
TEST 1/42: PASSED
TEST 2/42: PASSED
TEST 3/42: PASSED
TEST 4/42: PASSED
TEST 5/42: PASSED
TEST 6/42: PASSED
TEST 7/42: PASSED
TEST 8/42: PASSED
TEST 9/42: PASSED
TEST 10/42: PASSED
TEST 11/42: PASSED
TEST 12/42: PASSED
TEST 13/42: PASSED
TEST 14/42: PASSED
TEST 15/42: PASSED
TEST 16/42: PASSED
TEST 17/42: PASSED
TEST 18/42: PASSED
TEST 19/42: PASSED
TEST 20/42: PASSED
TEST 21/42: PASSED
TEST 22/42: PASSED
TEST 23/42: PASSED
TEST 24/42: PASSED
TEST 25/42: PASSED
TEST 26/42: PASSED
TEST 27/42: PASSED
TEST 28/42: PASSED
TEST 29/42: PASSED
TEST 30/42: PASSED
TEST 31/42: PASSED
TEST 32/42: PASSED
TEST 33/42: PASSED
TEST 34/42: PASSED
TEST 35/42: PASSED
TEST 36/42: PASSED
TEST 37/42: PASSED
TEST 38/42: PASSED
TEST 39/42: PASSED
TEST 40/42: PASSED
TEST 41/42: Creating large array... done in T=1 seconds. Starting exe with timeout 2*T+3...
Exe "heap.exe" terminated with exception 0xc0000005
:-(
Exe heap.exe failed for input file in.txt in the current directory.
Please fix and try again.
c:\Users\espetrov\WorkingPlace\Преп\18203\Nalepova\3.0>
Line 41 in 0940c8a
18203/Kondratieva/3.0/heapSort.c
Line 53 in c8c9a8d
Line 42 in f942769
Line 31 in daae167
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.