a1
This commit is contained in:
parent
10eac621ec
commit
33a03de6ba
17
a1/program.c
17
a1/program.c
@ -12,13 +12,13 @@ int main(){
|
||||
double vysledok;
|
||||
char znamienko;
|
||||
char* token;
|
||||
char vysledky[50][50]; // pole pre ukladanie vysledkov
|
||||
int pocet = 0;
|
||||
|
||||
while (1) {
|
||||
|
||||
char* a = fgets(pole, 100, stdin);
|
||||
|
||||
if (pole[0] == '\n') { //ci je riadok prazdny, ci sa stlacil enter
|
||||
// Kontrola, či je riadok prázdny
|
||||
if (pole[0] == '\n') {
|
||||
break;
|
||||
}
|
||||
|
||||
@ -50,19 +50,12 @@ int main(){
|
||||
printf("CHYBA\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (realny == vysledok){
|
||||
strcpy(vysledky[pocet], "OK"); //kopiruje vysledok do pola vysledky
|
||||
printf ("OK\n");
|
||||
}
|
||||
else{
|
||||
strcpy(vysledky[pocet], "ZLE");
|
||||
printf ("ZLE\n");
|
||||
}
|
||||
pocet++;
|
||||
}
|
||||
|
||||
//vypis vysledkov
|
||||
for (int i = 0; i < pocet; i++) {
|
||||
printf("%s\n", vysledky[i]);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
BIN
a1/program.exe
BIN
a1/program.exe
Binary file not shown.
@ -1,15 +1,15 @@
|
||||
Exception: STATUS_ACCESS_VIOLATION at rip=000100401117
|
||||
Exception: STATUS_ACCESS_VIOLATION at rip=00010040110E
|
||||
rax=0000000000000000 rbx=0000000800021389 rcx=0000000000000000
|
||||
rdx=0000000100403000 rsi=0000000000000000 rdi=0000000000000000
|
||||
r8 =00000007FFFFCE98 r9 =0000000000000001 r10=0000000800000000
|
||||
r11=00000001004010F2 r12=0000000A00000370 r13=00000007FFFFCDF0
|
||||
r11=00000001004010E9 r12=0000000A00000370 r13=00000007FFFFCDF0
|
||||
r14=0000000000000000 r15=0000000000000000
|
||||
rbp=00000007FFFFCC40 rsp=00000007FFFFCB80
|
||||
program=C:\cygwin64\home\matus\a1\program.exe, pid 2113, thread main
|
||||
program=C:\cygwin64\home\matus\a1\program.exe, pid 2327, thread main
|
||||
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
|
||||
Stack trace:
|
||||
Frame Function Args
|
||||
0007FFFFCC40 000100401117 (000000000000, 000000000000, 000000000000, 000000000000) program.exe+0x1117
|
||||
0007FFFFCC40 00010040110E (000000000000, 000000000000, 000000000000, 000000000000) program.exe+0x110E
|
||||
0007FFFFCD30 7FFF820C80A3 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x80A3
|
||||
0007FFFFFFF0 7FFF820C5C86 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5C86
|
||||
0007FFFFFFF0 7FFF820C5D34 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5D34
|
||||
@ -17,7 +17,6 @@ End of stack trace
|
||||
Loaded modules:
|
||||
000100400000 program.exe
|
||||
7FF812C10000 ntdll.dll
|
||||
7FF804620000 aswhook.dll
|
||||
7FF810960000 KERNEL32.DLL
|
||||
7FF80FF50000 KERNELBASE.dll
|
||||
7FFF820C0000 cygwin1.dll
|
||||
|
Loading…
Reference in New Issue
Block a user