/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int getLong(std::__cxx11::string&)':
foo.cc:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < str.length(); i++) {
                  ~~^~~~~~~~~~~~~~
foo.cc: In function 'int getAns(std::__cxx11::string&)':
foo.cc:27:10: error: 'pow' was not declared in this scope
  int t = pow(2, m + 1);
          ^~~
foo.cc:27:10: note: suggested alternative: 'putw'
  int t = pow(2, m + 1);
          ^~~
          putw
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1808 表达式的值
语言
C++
递交时间
2021-10-21 12:49:15
评测时间
2021-10-21 12:49:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes