Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141055 陈泊延 回文数 C++ Compile Error 0 MS 0 KB 468 2025-12-20 19:36:52

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n.t,r=0; t=n; while(t!=0){ r=r*10+t%10; t/=10; if(n==r){ cout<<"YES"; } else{ cout<<"NO"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:9: error: expected initializer before '.' token
    int n.t,r=0;
         ^
Main.cc:9:4: error: 't' was not declared in this scope
    t=n;
    ^
Main.cc:9:6: error: 'n' was not declared in this scope
    t=n;
      ^
Main.cc:11:8: error: 'r' was not declared in this scope
        r=r*10+t%10;
        ^