Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144590 王峻熙 字符转换 C++ Compile Error 0 MS 0 KB 214 2026-01-24 14:15:46

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int m; cin>>m; if('A'<=x&&x<='Z'){ cout<<"x+32"<<endl; } if('a'<=x&&x<='z'){ cout<<"x"<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:13: error: 'x' was not declared in this scope
     if('A'<=x&&x<='Z'){
             ^
Main.cc:9:13: error: 'x' was not declared in this scope
     if('a'<=x&&x<='z'){
             ^