/ AKIOI OJ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:25: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
   30 |                 if (pos * neg) cout << ans << '\n';
      |                     ~~~~^~~~~
In file included from /usr/include/c++/12/string:50,
                 from /usr/include/c++/12/bits/locale_classes.h:40,
                 from /usr/include/c++/12/bits/ios_base.h:41,
                 from /usr/include/c++/12/ios:42,
                 from /usr/include/c++/12/ostream:38,
                 from /usr/include/c++/12/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/12/bits/stl_algobase.h: In instantiation of 'const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
/in/foo.cc:29:12:   required from here
/usr/include/c++/12/bits/stl_algobase.h:281:17: error: '__comp' cannot be used as a function
  281 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~

信息

递交者
类型
递交
题目
P1030 TDOG模拟 #9 石子合并
语言
C++
递交时间
2024-11-02 10:46:55
评测时间
2024-11-02 10:46:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes