Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82699 石晋骁 加密的病历单 C++ Compile Error 0 MS 0 KB 302 2024-07-13 14:54:03

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; cin >> a; char t; int al = a.size(); for (int i =0;i < al;i++){ if(t >= 'a' && t<= 'z'){ s[i] = s[i]-32; }else{ s[i] = s[i]+32; } t = a[i]; t = a[i]-i; t = t - 3; cout << t; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:4: error: 's' was not declared in this scope
    s[i] = s[i]-32;
    ^
Main.cc:12:4: error: 's' was not declared in this scope
    s[i] = s[i]+32;
    ^