Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146543 孔声豪 15反转数字 C++ Compile Error 0 MS 0 KB 181 2026-01-29 12:14:00

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int n f=0; cin>>n; while(n!=0){ f*=10; n/=10; } cout<<f<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:10: error: expected initializer before 'f'
    int n f=0; 
          ^
Main.cc:6:9: error: 'n' was not declared in this scope
    cin>>n;
         ^
Main.cc:8:8: error: 'f' was not declared in this scope
        f*=10;
        ^
Main.cc:11:11: error: 'f' was not declared in this scope
     cout<