Ask coding questions

← Back to all posts
"assert" built in function not there?
grt10886478

Hey, this program seems to not acknowledge things my instructor told me should be there. Mainly "assert", but there's also std::bitset too.
I've heard about this website's c++ not being as up to date as it could be, and I've also heard explanations involving internal filepaths, but neither of those things are in my control on here.
What do I do?

Voters
grt10886478
Comments
hotnewtop
SixBeeps

I've just verified that assert works: https://replit.com/@SixBeeps/assert#main.cpp

I'm not the most familiar with C++, but it looks like you need to #include <bitset> to use std::bitset. That's how I solved the assert thing, I included cassert at the top of my code.

grt10886478

@SixBeeps I've tried to include cassert before but it didn't seem to work for some reason... but I can try again