QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#434879 | #8785. Fake Coin and Lying Scales | ucup-team3678# | Compile Error | / | / | C++14 | 224b | 2024-06-08 17:47:37 | 2024-06-08 17:47:38 |
Judging History
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); | ~~~~~^~~~~~~~~~