/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void find_min()':
foo.cc:56:15: error: 'INT_MAX' was not declared in this scope
   int minAB = INT_MAX;
               ^~~~~~~
foo.cc:56:15: note: suggested alternative: 'INT8_MAX'
   int minAB = INT_MAX;
               ^~~~~~~
               INT8_MAX
foo.cc:62:4: error: 'memset' was not declared in this scope
    memset(&visit[0], 0, visit.size()*sizeof(visit[0]));
    ^~~~~~
foo.cc:62:4: note: suggested alternative: 'wmemset'
    memset(&visit[0], 0, visit.size()*sizeof(visit[0]));
    ^~~~~~
    wmemset
foo.cc:54:7: warning: unused variable 'gap' [-Wunused-variable]
   int gap = 20;
       ^~~
foo.cc:55:7: warning: unused variable 'pos' [-Wunused-variable]
   int pos = 1;
       ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1039 最小差距
语言
C++
递交时间
2021-12-02 16:56:27
评测时间
2021-12-02 16:56:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes