Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69278 揭伟琦 05求百位数的每一位数之和 C++ Compile Error 0 MS 0 KB 151 2024-03-31 14:32:26

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int >>a; int g=a%10; int s=a/10%10; int b=a/100%10; cout <<g+c+b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:6: error: expected unqualified-id before '>>' token
  int >>a;
      ^
Main.cc:5:8: error: 'a' was not declared in this scope
  int g=a%10;
        ^
Main.cc:8:11: error: 'c' was not declared in this scope
  cout <