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

Wrong macro ensure #201

Open
MikeMirzayanov opened this issue Jan 8, 2024 · 0 comments
Open

Wrong macro ensure #201

MikeMirzayanov opened this issue Jan 8, 2024 · 0 comments

Comments

@MikeMirzayanov
Copy link
Owner

map<pair<int, int>, int> weight;

ensure((weight[{u, v}] == 0));

->

check.cpp:41:39: error: macro "ensure" passed 2 arguments, but takes just 1 ensure(weight[{u, v}] == 0); ^ check.cpp: In function 'int main(int, char**)': check.cpp:41:13: error: 'ensure' was not declared in this scope ensure(weight[{u, v}] == 0); ^~~~~~ check.cpp:41:13: note: suggested alternative: 'ensuref' ensure(weight[{u, v}] == 0); ^~~~~~ ensuref

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