Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64983 邓嘉懿 04四位数移位 C++ Compile Error 0 MS 0 KB 203 2024-01-23 11:02:28

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a; scanf("%d", &a); int g=a%10; int s=a/10%10; int b=a/10/10%10; int q=a/10/10/10%10; cout<<g<<q<<b<<s; return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:10: error: expected '}' at end of input
  return 0;
          ^
Main.cc:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &a);
                 ^