assert warning c++
#include <iostream>
#include <cassert>
int main() {
int x = 5;
// Using assert to check if x is greater than 0
assert(x > 0);
// Rest of the program continues if the assertion is true
std::cout << "x is greater than 0" << std::endl;
return 0;
}