Problem | cuberoot |
---|---|
User | Daddy |
Submission Time | 2023-11-17 10:24:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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 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:7:3: error: expected identifier before ‘int’
7 | int t;
| ^~~
cuberoot.cpp:7:8: error: expected ‘]’ before ‘;’ token
7 | int t;
| ^
| ]
cuberoot.cpp: In lambda function:
cuberoot.cpp:7:8: error: expected ‘{’ before ‘;’ token
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:9:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9 | cout<<cbrt(t)<<endl;
| ^~~~
| std::cout
In file included from cuberoot.cpp:1:
/usr/include/c++/9/iost