/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int zdgys(int, int)':
/in/foo.cc:7:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    7 |  while(r = a % b )
      |        ~~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:24:23: error: 'strlen' was not declared in this scope
   24 |   for (int j = 2; j < strlen(s); j++)
      |                       ^~~~~~
/in/foo.cc:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 | #include<cmath>
  +++ |+#include <cstring>
    3 | using namespace std;
/in/foo.cc:35:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   35 |     system("pause");
      |     ~~~~~~^~~~~~~~~

信息

递交者
类型
递交
题目
P1364 小数转分数
语言
C++
递交时间
2023-12-19 14:57:58
评测时间
2023-12-19 14:57:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes