Language: C++

#iclude,bits/stdc++.h>
using namespace std;
int main(){
  int w,h,n,ww,hh;cin>>w>>h>>n;
  int xM=0,xm=w,yM=0,ym=h;
  vector<int> x(n),y(n),a(n);
  for(int i=0;i<n;i++)cin>>x.at(i)>>y.at(i)>>a.at(i);
  for(int j=0;j<n;j++){
    if(a.at(j)==1)xM=max(xM,x.at(j));
    else if(a.at(j)==2)xm=min(xm,x.at(j));
    else if(a.at(j)==3)yM=max(yM,y.at(j));
    else ym=min(ym,y.at(j));
  }
  ww=max(0,xm-xM);
  hh=max(0,ym-yM);
  cout<<ww*hh<<endl;
}
                              

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude,bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:19: error: 'cin' was not declared in this scope
    4 |   int w,h,n,ww,hh;cin>>w>>h>>n;
      |                   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude,bits/stdc++.h>
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> x(n),y(n),a(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #iclude,bits/stdc++.h>
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> x(n),y(n),a(n);
      |          ^~~
a.cc:7:28: error: 'x' was not declared in this scope
    7 |   for(int i=0;i<n;i++)cin>>x.at(i)>>y.at(i)>>a.at(i);
      |                            ^
a.cc:7:37: error: 'y' was not declared in this scope
    7 |   for(int i=0;i<n;i++)cin>>x.at(i)>>y.at(i)>>a.at(i);
      |                                     ^
a.cc:7:46: error: 'a' was not declared in this scope
    7 |   for(int i=0;i<n;i++)cin>>x.at(i)>>y.at(i)>>a.at(i);
      |                                              ^
a.cc:9:8: error: 'a' was not declared in this scope
    9 |     if(a.at(j)==1)xM=max(xM,x.at(j));
      |        ^
a.cc:9:29: error: 'x' was not declared in this scope
    9 |     if(a.at(j)==1)xM=max(xM,x.at(j));
      |                             ^
a.cc:9:22: error: 'max' was not declared in this scope
    9 |     if(a.at(j)==1)xM=max(xM,x.at(j));
      |                      ^~~
a.cc:10:34: error: 'x' was not declared in this scope
   10 |     else if(a.at(j)==2)xm=min(xm,x.at(j));
      |                                  ^
a.cc:10:27: error: 'min' was not declared in this scope; did you mean 'main'?
   10 |     else if(a.at(j)==2)xm=min(xm,x.at(j));
      |                           ^~~
      |                           main
a.cc:11:34: error: 'y' was not declared in this scope
   11 |     else if(a.at(j)==3)yM=max(yM,y.at(j));
      |                                  ^
a.cc:11:27: error: 'max' was not declared in this scope
   11 |     else if(a.at(j)==3)yM=max(yM,y.at(j));
      |                           ^~~
a.cc:12:20: error: 'y' was not declared in this scope
   12 |     else ym=min(ym,y.at(j));
      |                    ^
a.cc:12:13: error: 'min' was not declared in this scope; did you mean 'main'?
   12 |     else ym=min(ym,y.at(j));
      |             ^~~
      |             main
a.cc:14:6: error: 'max' was not declared in this scope
   14 |   ww=max(0,xm-xM);
      |      ^~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<ww*hh<<endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:16: error: 'endl' was not declared in this scope
   16 |   cout<<ww*hh<<endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude,bits/stdc++.h>