Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67910 张黄源 04倒序输出五位数 C++ Compile Error 0 MS 0 KB 247 2024-03-17 15:46:29

Tests(0/0):


Code:

include<iostream> using namespace std; int main(){ int a; cin >> a; int g = a % 10; int s = a / 10 % 10; int b = a / 100 % 10; int q = a / 1000 % 10; int w = a / 10000 % 10; cout << g << s << b << q << w << endl; return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin >> a;
  ^
Main.cc:11:2: error: 'cout' was not declared in this scope
  cout << g << s << b << q << w << endl;
  ^
Main.cc:11:35: error: 'endl' was not declared in this scope
  cout << g << s << b << q << w << endl;
                                   ^