This commit is contained in:
Damián Korpesio 2021-11-28 20:05:57 +01:00
parent 8c8c7c1642
commit 8c0021b8d0

View File

@ -72,7 +72,7 @@ int main(){
else if (hodnota == 2){
hej = 0;
//hodnota = 0;
for (a = p; a>n; a++){
for (a = p; a<n; a++){
if (r[a] == ')') {
//puts("hod 2");
hej = 1;
@ -84,7 +84,7 @@ int main(){
//puts("nasiel");
hej = 0;
a = n;
i = n - 1;
i = n;
}
else if (a == n - 1 && hej == 0){
hej = 4;
@ -101,11 +101,11 @@ int main(){
//puts("neidem");
if (r[a] == ']') {
//puts("nasiel som");
puts("hod 3");
//puts("hod 3");
hej = 1;
//r[a] = 'a';
p = a;
a = n - 1;
a = n;
}
else if (r[a] == '}' || r[a] == ')' || r[a] == '>'){
//puts("nie");
@ -125,13 +125,13 @@ int main(){
else if (hodnota == 4){
hej = 0;
//hodnota = 0;
for (a = p; a>n; a++){
for (a = p; a<n; a++){
if (r[a] == '>') {
//puts("hod 4");
hej = 1;
//r[a] = 'a';
p = a;
a = n -1;
a = n;
}
else if (r[a] == '}' || r[a] == ']' || r[a] == ')'){
//puts("nasiel");