Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

실행 중 ㅆ 명령에서 stacksize가 틀어질 수 있습니다. #19

Closed
Bubbler-4 opened this issue Jan 27, 2023 · 0 comments · Fixed by #28
Closed

실행 중 ㅆ 명령에서 stacksize가 틀어질 수 있습니다. #19

Bubbler-4 opened this issue Jan 27, 2023 · 0 comments · Fixed by #28

Comments

@Bubbler-4
Copy link

MRE:

발밤박망써희

이 코드는 를 써서 데이터를 옮기지 않고 현재 스택에 데이터가 존재하는지 여부를 가지고 branch하는 코드입니다. 예상 동작은 스택에 넣은 역순으로 모든 수를 출력 후 종료하는 것으로, AVIS에서 실행 시 예상대로 245가 출력됩니다. 하지만 rpaheui에서는 24만 출력하고 종료되는데, 이는 저장공간과 별도로 현재 저장공간의 크기를 트래킹하는 stacksize에서 1 줄어들고, 다시 같은 저장공간에 넣었음에도 다시 1 늘어나지 않아서 생긴 문제로 보입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant