ancient2.cpp: In function 'int gauss(std::bitset<1001>)':
ancient2.cpp:19:7: error: no match for 'operator!' (operand type is 'std::bitset<1001>')
19 | if (!akt[i] && x[i]){
| ^~~~~~~
ancient2.cpp:19:7: note: candidate: 'operator!(bool)' (built-in)
ancient2.cpp:19:7: note: no known conversion for argument 1 from 'std::bitset<1001>' to 'bool'
ancient2.cpp:25:3: error: 'wy' was not declared in this scope
25 | wy ^= ans[i];
| ^~
ancient2.cpp:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
25 | wy ^= ans[i];
| ^~~
| abs
ancient2.cpp: In function 'void stworz_automat(int, int)':
ancient2.cpp:38:12: error: type/value mismatch at argument 1 in template parameter list for 'template<long unsigned int _Nb> class std::bitset'
38 | bitset<int> wy;
| ^
ancient2.cpp:38:12: note: expected a constant of type 'long unsigned int', got 'int'
ancient2.cpp:39:37: error: invalid types 'int[int]' for array subscript
39 | for (int i = r; i < M-1; i += c) wy[i] = 1;
| ^
ancient2.cpp:44:8: error: 'i' was not declared in this scope
44 | for (i = 0; < c; i++){
| ^
ancient2.cpp:44:15: error: expected primary-expression before '<' token
44 | for (i = 0; < c; i++){
| ^
ancient2.cpp:53:8: error: 'i' was not declared in this scope
53 | for (i = c; i < 2*c; i++){
| ^