| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134923 | 刘益梵 | 加密的病历单 | C++ | Compile Error | 0 MS | 0 KB | 406 | 2025-11-01 17:25:26 |
#include<bits/stdc++.h> using namespace std; char a[100]; int main(){ cin<<a; for(int i=0;i<strlen(a);i++){ if(a[i]>='A'&&a[i]<='Z'){ a[i]+=32; a[i]+=3; if(a[i]>'z'){ a[i]-=26; } }else{ a[i]-=32; a[i]+=3; if(a[i]>'Z'){ a[i]-=26; } } } for(int i=0;i<strlen(a);i++){ cout<<a[i]; }cout<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:6: error: no match for 'operator<<' (operand types are 'std::istream {aka std::basic_istream}' and 'char [100]')
cin< std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::sub_match<_Bi_iter>&)
operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
^
/usr/include/c++/5/bits/regex.h:1480:5: note: template argument deduction/substitution failed:
Main.cc:5:8: note: 'std::istream {aka std::basic_istream}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
cin<