记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:12: error: 'strlen' was not declared in this scope
  int len = strlen(ss);
            ^~~~~~
/in/foo.cc:8:12: note: suggested alternative: 'mbrlen'
  int len = strlen(ss);
            ^~~~~~
            mbrlen
/in/foo.cc:8:6: warning: unused variable 'len' [-Wunused-variable]
  int len = strlen(ss);
      ^~~
/in/foo.cc:11:6: warning: unused variable 'i' [-Wunused-variable]
  int i, n = 1;
      ^
/in/foo.cc:11:9: warning: unused variable 'n' [-Wunused-variable]
  int i, n = 1;
         ^
/in/foo.cc:12:6: warning: unused variable 'arr' [-Wunused-variable]
  int arr[100] ={0}, k = 0;
      ^~~
/in/foo.cc:12:21: warning: unused variable 'k' [-Wunused-variable]
  int arr[100] ={0}, k = 0;
                     ^

信息

递交者
类型
递交
题目
2-5 二进制表达式求值
比赛
南师大2018年蓝桥杯热身赛
语言
C++
递交时间
2018-12-12 16:15:43
评测时间
2018-12-12 16:15:52
评测机
分数
0
总耗时
239ms
峰值内存
29.441 MiB