Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62616 夏轩淇 字符串拼接 C++ Compile Error 0 MS 0 KB 205 2023-12-24 17:12:19

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ char a[1000],b[1000]; int n; cin>>a>>b>>n; int sa=strlen(a); if(n<=sa){ cout<<a[n]; }else{ n-=sa; cout<<b[n]; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:17: error: 'strlen' was not declared in this scope
  int sa=strlen(a); 
                 ^