Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118604 罗迎甲 22破解密码 C++ Compile Error 0 MS 0 KB 406 2025-05-05 17:00:07

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[51]={0} int a1; cin>>a; a1=strlen(a);//获取子符串的长 for(int i=0;i<a1;i+=3) cout<<a[a1]; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:5: error: expected ',' or ';' before 'int'
     int a1;
     ^
Main.cc:11:5: error: 'a1' was not declared in this scope
     a1=strlen(a);//获取子符串的长
     ^