Problem cuberoot
User itchydeez
Submission Time 2024-02-10 18:20:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp:2:7: error: expected nested-name-specifier before ‘namespcae’
2 | using namespcae std;
| ^~~~~~~~~
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>t;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from cuberoot.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
cuberoot.cpp:11:3: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
11 | print(cbrt(arr[j]));
| ^~~~~
| printf
cuberoot.cpp:15:10: error: expected ‘;’ before ‘}’ token
15 | return 0
| ^
| ;
......
18 | }
| ~