Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126813 葛锦东 判断身材 C++ Compile Error 0 MS 0 KB 282 2025-07-21 17:24:57

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int a, d; double n;//标准体重 cin >> a >>d; n = (a - 100) * 0.9; if (d > n * 1.1) { cout << "fat"; } else if (d < n * 0.9) { cout << "thin"; } else { cout << "standard"; } return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:18:10: error: expected '}' at end of input
  return 0;
          ^