vision.cpp:10:21: error: macro "assert" passed 2 arguments, but takes just 1
10 | assert(H - 1, W - 1);
| ^
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from vision.cpp:5:
/usr/include/assert.h:92: note: macro "assert" defined here
92 | # define assert(expr) \
|
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:10:2: error: 'assert' was not declared in this scope
10 | assert(H - 1, W - 1);
| ^~~~~~
vision.cpp:6:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
5 | #include <bits/stdc++.h>
+++ |+#include <cassert>
6 | using namespace std;