Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113121 刘轻松 字符串替换 C++ Compile Error 0 MS 0 KB 189 2025-03-15 11:58:05

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; string s1,s2; int main(){ cin>>s1>>s2; int len1=s1.size(); for(int i=0;i<len;i++){ cout<<s2[s1[i]-'a']; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:16: error: 'len' was not declared in this scope
  for(int i=0;i