/ Vijos /

记录详情

Compile Error

foo.cc: In function 'bool sushu(int)':
foo.cc:140:23: error: 'sqrt' was not declared in this scope
  140 |  for (int i = 2; i <= sqrt(n); i++)
      |                       ^~~~
foo.cc: In function 'void test63()':
foo.cc:211:8: warning: unused variable 't' [-Wunused-variable]
  211 |    int t;
      |        ^
foo.cc: In function 'void test65()':
foo.cc:292:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  292 |   for (int i = 0; i < f.size(); )
      |                   ~~^~~~~~~~~~
foo.cc:306:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  306 |     if (t < f.size() - 1)
      |         ~~^~~~~~~~~~~~~~
foo.cc:310:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  310 |    if (t == f.size() - 1)
      |        ~~^~~~~~~~~~~~~~~
foo.cc: In function 'void test66()':
foo.cc:377:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  377 |   for (int i = 0; i < f.size(); i++)
      |                   ~~^~~~~~~~~~
foo.cc:384:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  384 |    if (i == f.size() - 1)
      |        ~~^~~~~~~~~~~~~~~
foo.cc:388:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  388 |      for (int i = 0; i < f.size(); i++)
      |                      ~~^~~~~~~~~~
foo.cc: In function 'void test68()':
foo.cc:454:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  454 |    for (int i = 1; i < v1.size(); i++)
      |                    ~~^~~~~~~~~~~
foo.cc: In function 'void test69()':
foo.cc:490:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  490 |   for (int i = 0; i < f.size(); i++)
      |                   ~~^~~~~~~~~~
foo.cc:518:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  518 |    if (i == f.size() - 1)
      |        ~~^~~~~~~~~~~~~~~
foo.cc: In function 'void test70()':
foo.cc:554:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  554 |    for (int i = 0; i < f.size(); i++)
      |                    ~~^~~~~~~~~~
foo.cc:558:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  558 |    for (int i = 0; i < v1.size() - 1; i++)
      |                    ~~^~~~~~~~~~~~~~~
foo.cc: In function 'void test72()':
foo.cc:626:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  626 |  for (int i = 0; i < v1.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc:628:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  628 |   for (int j = 0; j < v1.size(); j++)
      |                   ~~^~~~~~~~~~~
foo.cc: In function 'void test74()':
foo.cc:676:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  676 |  for (int i = 0; i < v1.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc: In function 'void test76()':
foo.cc:725:6: warning: unused variable 'distance' [-Wunused-variable]
  725 |  int distance = 0;
      |      ^~~~~~~~
foo.cc: In function 'void test82()':
foo.cc:1045:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1045 |   for (int i = 0; i < z.size(); i++)
      |                   ~~^~~~~~~~~~
foo.cc:1065:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1065 |     for (int i = 0; i < f.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc:1085:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1085 |     for (int i = 0; i < f.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc: In function 'void test85()':
foo.cc:1255:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<dianzan>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1255 |  for (int i = 0; i < v1.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc:1271:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<dianzan>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1271 |   for (int i = 0; i < v1.size(); i++)
      |                   ~~^~~~~~~~~~~
foo.cc:1276:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<dianzan>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1276 |     if (i != v1.size() - 1)
      |         ~~^~~~~~~~~~~~~~~~
foo.cc:1313:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1313 |   for (int i = 0; i < v2.size(); i++)
      |                   ~~^~~~~~~~~~~
foo.cc:1316:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1316 |    if (i != v2.size() - 1)
      |        ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'void test86()':
foo.cc:1443:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<distance1>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1443 |    for (int i = 0; i < v1.size(); i++)
      |                    ~~^~~~~~~~~~~
foo.cc: In function 'void test87()':
foo.cc:1461:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1461 |   for (int i = 0; i < a.size(); i++)
      |                   ~~^~~~~~~~~~
foo.cc:1481:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1481 |    if (i == a.size() - 1)
      |        ~~^~~~~~~~~~~~~~~
foo.cc:1483:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1483 |     for (int j = 0; j < a.size(); j++)
      |                     ~~^~~~~~~~~~
foo.cc: In function 'void test88()':
foo.cc:1551:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<gouwu>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1551 |  for (int i = 0; i < v1.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc:1555:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<gouwu>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1555 |   for (int j = i + 1; j < v1.size(); j++)
      |                       ~~^~~~~~~~~~~
foo.cc: In function 'long int jinzhi(long int, long int)':
foo.cc:1596:17: error: 'pow' was not declared in this scope
 1596 |   sum += temp * pow(n, i);
      |                 ^~~
foo.cc: In function 'void test91()':
foo.cc:1666:9: warning: unused variable 'b' [-Wunused-variable]
 1666 |  int a, b, c;
      |         ^
foo.cc: In function 'void test94()':
foo.cc:1843:8: warning: operation on 'tao' may be undefined [-Wsequence-point]
 1843 |    tao = tao++;
      |    ~~~~^~~~~~~
foo.cc:1843:8: warning: operation on 'tao' may be undefined [-Wsequence-point]
foo.cc: In function 'void test96()':
foo.cc:1945:14: error: 'pow' was not declared in this scope
 1945 |    int sum = pow(2, n);
      |              ^~~
foo.cc: In function 'void test97()':
foo.cc:1976:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 1976 |   for (int i = 2; i <= f.size(); i++)
      |                   ~~^~~~~~~~~~~
foo.cc:1973:7: warning: unused variable 't' [-Wunused-variable]
 1973 |   int t = f.size();
      |       ^
foo.cc: In function 'void test99()':
foo.cc:2093:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<duoxiangshi>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 2093 |  for (int i = 0; i < v1.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc:2095:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<duoxiangshi>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 2095 |   for (int j = i; j < v1.size();j++)
      |                   ~~^~~~~~~~~~~
foo.cc:2117:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<duoxiangshi>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
 2117 |  for (int i = 0; i < v2.size(); i++)
      |                  ~~^~~~~~~~~~~
foo.cc: In member function 'bool sort12::operator()(grade&, grade&)':
foo.cc:801:2: warning: control reaches end of non-void function [-Wreturn-type]
  801 |  }
      |  ^
foo.cc: In function 'std::string feibonaqie(int)':
foo.cc:858:1: warning: control reaches end of non-void function [-Wreturn-type]
  858 | }
      | ^
foo.cc: In function 'double yinzi(long long int)':
foo.cc:1127:1: warning: control reaches end of non-void function [-Wreturn-type]
 1127 | }
      | ^
foo.cc: In function 'int cuo(int)':
foo.cc:1780:1: warning: control reaches end of non-void function [-Wreturn-type]
 1780 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1065 最小数字倍数
语言
C++
递交时间
2021-12-29 10:17:51
评测时间
2021-12-29 10:17:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes