/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:37:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     cin >> str+1;
            ~~~^~
foo.cc:38:13: error: 'strlen' was not declared in this scope
     int n = strlen(str+1);
             ^~~~~~
foo.cc:38:13: note: suggested alternative: 'mbrlen'
     int n = strlen(str+1);
             ^~~~~~
             mbrlen
foo.cc:39:5: error: 'memset' was not declared in this scope
     memset(dp, -127/3, sizeof dp);
     ^~~~~~
foo.cc:39:5: note: suggested alternative: 'wmemset'
     memset(dp, -127/3, sizeof dp);
     ^~~~~~
     wmemset

信息

递交者
类型
递交
题目
P1306 递增序列
语言
C++
递交时间
2020-11-04 15:34:06
评测时间
2020-11-04 15:34:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes