Problem cuberoot
User claireau
Submission Time 2024-07-08 14:26:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:4:1: error: ‘arr’ was not declared in this scope
4 | arr<int>t;
| ^~~
cuberoot.cpp:4:5: error: expected primary-expression before ‘int’
4 | arr<int>t;
| ^~~
cuberoot.cpp:5:8: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
5 | cin >> t;
| ^
| tm
cuberoot.cpp: In lambda function:
cuberoot.cpp:6:10: error: expected ‘{’ before ‘;’ token
6 | return[t];
| ^
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:6:10: error: invalid user-defined conversion from ‘main()::<lambda()>’ to ‘int’ [-fpermissive]
cuberoot.cpp:6:7: note: candidate is: ‘constexpr main()::<lambda()>::operator void (*)()() const’ <near match>
6 | return[t];
| ^
cuberoot.cpp:6:7: note: no known conversion from ‘void (*)()’ to ‘int’
cuberoot.cpp:8:15: error: expected ‘;’