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

在“8.1.2 以递归方式划分数据”中的 parallel_quick_sort不能正常运行 #5

Open
peacess opened this issue May 9, 2023 · 0 comments

Comments

@peacess
Copy link

peacess commented May 9, 2023

下面是运行代码:
int main(){
std::list data = {5,1,2,9,100,8};
auto sorted_data = parallel_quick_sort(data);
for(auto it: sorted_data ){
printf("%d", it);
}
}
出错信息:
terminate called after throwing an instance of 'EmptyStack'
what(): empty stack!
[1] + Done "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-m25ftpou.0wk" 1>"/tmp/Microsoft-MIEngine-Out-xpupxdid.5th"

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

No branches or pull requests

1 participant