Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128690 田祥江 06字符后移 C++ Compile Error 0 MS 0 KB 229 2025-08-19 12:48:33

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c,d; cin>>b>>c>>d; if(a="z"){ cout<<"a"; }else{ a=a+1; b=b+1; c=c+1; d=d+1; cout<<a<<" "<<b<<" "<<c<<" "<<d; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
     if(a="z"){
         ^
Main.cc:6:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(a="z"){
             ^