QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#772655 | #6542. Optimal Quadratic Function | utilforever | Compile Error | / | / | C++23 | 2.9kb | 2024-11-22 21:04:46 | 2024-11-22 21:04:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:22:7: error: ‘GOLDEN_RATIO’ does not name a type 22 | const GOLDEN_RATIO = (1.0 + sqrt(5.0)) / 2.0; | ^~~~~~~~~~~~ answer.code: In function ‘f128 calculate_b(const std::vector<long double>&, const std::vector<long double>&, f128)’: answer.code:34:22: error: ‘GOLDEN_RATIO’ was not declared in this scope 34 | f128 mid1 = (GOLDEN_RATIO * left + right) / (1.0 + GOLDEN_RATIO); | ^~~~~~~~~~~~ answer.code: In function ‘f128 calculate_a(const std::vector<long double>&, const std::vector<long double>&)’: answer.code:60:22: error: ‘GOLDEN_RATIO’ was not declared in this scope 60 | f128 mid1 = (GOLDEN_RATIO * left + right) / (1.0 + GOLDEN_RATIO); | ^~~~~~~~~~~~