/ JMU /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:29: error: 'abs' was not declared in this scope
    int dis = 2 * abs(i - len) - 1;
                             ^
/in/foo.cc:12:29: note: suggested alternative:
In file included from /in/foo.cc:2:0:
/usr/include/c++/6/cmath:103:5: note:   'std::abs'
     abs(_Tp __x)
     ^~~
/in/foo.cc:32:29: error: 'abs' was not declared in this scope
    int dis = 2 * abs(i - len) - 1;
                             ^
/in/foo.cc:32:29: note: suggested alternative:
In file included from /in/foo.cc:2:0:
/usr/include/c++/6/cmath:103:5: note:   'std::abs'
     abs(_Tp __x)
     ^~~

信息

递交者
类型
递交
题目
P1001 辉夜想要看烟花
语言
C++
递交时间
2019-09-17 11:29:32
评测时间
2019-09-17 11:29:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes