/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:17: error: redeclaration of 'int m'
    7 |     int n,m,i,j,m,q;
      |                 ^
foo.cc:7:11: note: 'int m' previously declared here
    7 |     int n,m,i,j,m,q;
      |           ^
foo.cc:8:6: error: redeclaration of 'int m'
    8 |  int m;
      |      ^
foo.cc:7:11: note: 'int m' previously declared here
    7 |     int n,m,i,j,m,q;
      |           ^
foo.cc:18:7: error: 'min' was not declared in this scope; did you mean 'std::min'?
   18 |  side=min(n,m);
      |       ^~~
      |       std::min
In file included from /usr/include/c++/9/algorithm:62,
                 from foo.cc:3:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: 'std::min' declared here
 3450 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
foo.cc:36:7: error: 'k' was not declared in this scope
   36 |   for(k=0;k<=n-side;k++)
      |       ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1057 盖房子
语言
C++
递交时间
2021-12-30 01:50:32
评测时间
2021-12-30 01:50:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes