Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81818 刘宇轩 字符串拼接 C++ Runtime Error 1 MS 276 KB 219 2024-07-12 15:38:14

Tests(4/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; int x,z=0; cin>>a>>b>>x; c=a; for(int i=a.size();i<=a.size()+b.size();i++){ c[i]=b[z]; z++; } cout<<c[x-1]; return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated