Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98582 秦浩然 回文数 C++ Compile Error 0 MS 0 KB 272 2024-11-23 11:42:15

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:5: error: expected ';' before '}' token
     }
     ^