Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78240 申明宇 字符串中最大的数字 C++ Compile Error 0 MS 0 KB 148 2024-06-16 18:25:05

Tests(0/0):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ int a[101],o=0; o=strlen(a); cout<<o; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:15: error: cannot convert 'int*' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
     o=strlen(a);
               ^