patkice.cpp: In function 'int main()':
patkice.cpp:74:8: error: 'assert' was not declared in this scope
74 | assert(cnt==1), printf(":)\n%c\n", s);
| ^~~~~~
patkice.cpp:3:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
2 | #include <algorithm>
+++ |+#include <cassert>
3 |
patkice.cpp:51:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%d%d", &r, &s);
| ~~~~~^~~~~~~~~~~~~~~~
patkice.cpp:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
53 | scanf("%s", mat[i]);
| ~~~~~^~~~~~~~~~~~~~