QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#434879#8785. Fake Coin and Lying Scalesucup-team3678#Compile Error//C++14224b2024-06-08 17:47:372024-06-08 17:47:38

Judging History

你现在查看的是最新测评结果

  • [2024-06-08 17:47:38]
  • 评测
  • [2024-06-08 17:47:37]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

signed main() {
    int T; scanf("%d", &T);
    while (T--) {
        double n, k; cin >> n >> k;
        printf("%.10lf\n", ln(3) * n - 9.99);
    }
    return 0;
}

詳細信息

answer.code: In function ‘int main()’:
answer.code:9:28: error: ‘ln’ was not declared in this scope; did you mean ‘n’?
    9 |         printf("%.10lf\n", ln(3) * n - 9.99);
      |                            ^~
      |                            n
answer.code:6:17: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     int T; scanf("%d", &T);
      |            ~~~~~^~~~~~~~~~