Language: C++

#include<cstdio>
#include<vector>
#include<cstring>
using namespace std;
#define L 503

struct move {
	int x,y,tx,ty;
};
int n,m,r;
int num[L][L];
bool even[L];
vector<move>ans;

int main() {
	scanf("%d %d",&n,&m);
	for(int i=1;i<=n;i++) {
		for(int j=1;j<m;j++) {
			scanf("%d",&r);
			num[i][j]+=r;
			if(num[i][j]%2==1) {
				num[i][j]--,num[i][j+1]++;
				ans.push_back((move){i,j,i,j+1});
			}
		}
		scanf("%d",&r);
		num[i][m]+=r;
		if(num[i][m]%2==1) {
			if(i==n) continue;
			num[i][m]--,num[i+1][m]++;
			ans.push_back((move){i,m,i+1,m});
		}
	}
	printf("%d\n",ans.size());
	for(int i=0;i<ans.size();i++)
		printf("%d %d %d %d\n",ans[i].x,ans[i].y,ans[i].tx,ans[i].ty);
	return 0;
}

Compiler output:
a.cc:13:12: error: template argument 1 is invalid
   13 | vector<move>ans;
      |            ^
a.cc:13:12: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:23:37: error: request for member 'push_back' in 'ans', which is of non-class type 'int'
   23 |                                 ans.push_back((move){i,j,i,j+1});
      |                                     ^~~~~~~~~
a.cc:23:48: error: reference to 'move' is ambiguous
   23 |                                 ans.push_back((move){i,j,i,j+1});
      |                                                ^~~~
In file included from /usr/include/c++/14/vector:62,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:675:5: note: candidates are: 'template<class _II, class _OI> _OI std::move(_II, _II, _OI)'
  675 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61,
                 from /usr/include/c++/14/bits/stl_algobase.h:64:
/usr/include/c++/14/bits/move.h:137:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  137 |     move(_Tp&& __t) noexcept
      |     ^~~~
a.cc:7:8: note:                 'struct move'
    7 | struct move {
      |        ^~~~
a.cc:31:29: error: request for member 'push_back' in 'ans', which is of non-class type 'int'
   31 |                         ans.push_back((move){i,m,i+1,m});
      |                             ^~~~~~~~~
a.cc:31:40: error: reference to 'move' is ambiguous
   31 |                         ans.push_back((move){i,m,i+1,m});
      |                                        ^~~~
/usr/include/c++/14/bits/stl_algobase.h:675:5: note: candidates are: 'template<class _II, class _OI> _OI std::move(_II, _II, _OI)'
  675 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
/usr/include/c++/14/bits/move.h:137:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  137 |     move(_Tp&& __t) noexcept
      |     ^~~~
a.cc:7:8: note:                 'struct move'
    7 | struct move {
      |        ^~~~
a.cc:34:27: error: request for member 'size' in 'ans', which is of non-class type 'int'
   34 |         printf("%d\n",ans.size());
      |                           ^~~~
a.cc:35:27: error: request for member 'size' in 'ans', which is of non-class type 'int'
   35 |         for(int i=0;i<ans.size();i++)
      |                           ^~~~
a.cc:36:43: error: invalid types 'int[int]' for array subscript
   36 |                 printf("%d %d %d %d\n",ans[i].x,ans[i].y,ans[i].tx,ans[i].ty);
      |                                           ^
a.cc:36:52: error: invalid types 'int[int]' for array subscript
   36 |                 printf("%d %d %d %d\n",ans[i].x,ans[i].y,ans[i].tx,ans[i].ty);
      |                                                    ^
a.cc:36:61: error: invalid types 'int[int]' for array subscript
   36 |                 printf("%d %d %d %d\n",ans[i].x,ans[i].y,ans[i].tx,ans[i].ty);
      |                                                             ^
a.cc:36:71: error: invalid types 'int[int]' for array subscript
   36 |                 printf("%d %d %d %d\n",ans[i].x,ans[i].y,ans[i].tx,ans[i].ty);
      |                                                                       ^