Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65629 王佰辉 字符串替换 C++ Compile Error 0 MS 0 KB 215 2024-01-29 17:17:06

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ string str,ex; cin>>str>>ex; for(int i=0;i<str.length();i++){ if('A'<=str[i]&&str[i]<='Z') str[i = ex[str[i]-'A']-32; else if('a'<=) } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i