Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85317 卢语涵 回文数 C++ Compile Error 0 MS 0 KB 495 2024-07-17 08:57:12

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int z,b=0,c; cin>>z; c=z; do{ b = b * 10 + z%10; z=z/10; }while(z!=0); if(c==b){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }#include<iostream> using namespace std; int main(){ int z,b=0,c; cin>>z; c=z; do{ b = b * 10 + z%10; z=z/10; }while(z!=0); if(c==b){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }


Run Info:

Main.cc:17:2: error: stray '#' in program
 }#include
  ^
Main.cc:17:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:19:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:3:5: note: 'int main()' previously defined here
 int main(){
     ^