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

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ cin 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 ';' before 'a'
  cin a;
      ^
Main.cc:4:7: warning: statement has no effect [-Wunused-value]
  cin 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 <