Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: 'imt' was not declared in this scope; did you mean 'int'?
    5 |         imt m,m1,a,b,sum=0,sum1=0;
      |         ^~~
      |         int
foo.cc:6:14: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |         cin>>m>>a>>m1>>b;
      |              ^
      |              tm
foo.cc:6:17: error: 'a' was not declared in this scope
    6 |         cin>>m>>a>>m1>>b;
      |                 ^
foo.cc:6:20: error: 'm1' was not declared in this scope; did you mean 'y1'?
    6 |         cin>>m>>a>>m1>>b;
      |                    ^~
      |                    y1
foo.cc:6:24: error: 'b' was not declared in this scope
    6 |         cin>>m>>a>>m1>>b;
      |                        ^
foo.cc:9:24: error: 'sum' was not declared in this scope
    9 |                 case 1:sum+=a;break;
      |                        ^~~
foo.cc:24:24: error: 'sum1' was not declared in this scope
   24 |                 case 1:sum1+=b;break;
      |                        ^~~~
foo.cc:37:15: error: 'sum1' was not declared in this scope
   37 |         cout<<sum1-sum;
      |               ^~~~
foo.cc:37:20: error: 'sum' was not declared in this scope
   37 |         cout<<sum1-sum;
      |                    ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1036 xf1-6计算日期
语言
C++
递交时间
2023-07-23 20:05:04
评测时间
2023-07-23 20:05:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes