| Problem | cuberoot |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-11-10 13:45:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:11:22: error: ‘n’ was not declared in this scope
11 | for (int i = 0; i < n; i++) {
| ^
cuberoot.cpp:14:22: error: ‘n’ was not declared in this scope
14 | for (int i = 0; i < n; i++) {
| ^
cuberoot.cpp:15:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’})
15 | cout >> cbrt(Q[i]) >> "\n";
| ~~~~ ^~ ~~~~~~~~~~
| | |
| | __gnu_cxx::__enable_if<true, double>::__type {aka double}
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from cuberoot.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _Integer