Problem | cuberoot |
---|---|
User | JhoCyber |
Submission Time | 2025-01-17 19:52:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:3:13: error: ‘doubke’ was not declared in this scope; did you mean ‘double’?
3 | #define int doubke
| ^~~~~~
cuberoot.cpp:6:5: note: in expansion of macro ‘int’
6 | int n, x;
| ^~~
cuberoot.cpp:7:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | cin >> n; // Number of test cases
| ^
| yn
cuberoot.cpp:8:14: error: expected ‘;’ before ‘i’
8 | for (int i = 0; i < n; i++) {
| ^
cuberoot.cpp:8:21: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i < n; i++) {
| ^
cuberoot.cpp:9:16: error: ‘x’ was not declared in this scope
9 | cin >> x;
| ^
cuberoot.cpp:10:13: error: expected ‘;’ before ‘cb’
10 | int cb = cbrt(x); // Calculate cube root