QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
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); | ~~~~~^~~~~~~~~~