记录详情

Compile Error

foo.cc: In function 'int findmax(std::vector<int>&)':
foo.cc:17:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |         for (int i = 0; i<a.size(); i++)
      |                         ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:42:29: error: 'sqrt' was not declared in this scope
   42 |         cout << max <<" "<< sqrt(min);
      |                             ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1551 Problem 7B. 除数
语言
C++
递交时间
2023-12-12 14:59:00
评测时间
2023-12-12 14:59:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes