Problem cuberoot
User Blender
Submission Time 2024-02-02 14:25:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:23:15: error: direct-list-initialization of ‘auto’ requires exactly one element [-fpermissive]
23 | for ( auto i{}; i < N; i++ )
| ^
cuberoot.cpp:23:15: note: for deduction to ‘std::initializer_list’, use copy-list-initialization (i.e. add ‘=’ before the ‘{’)
cuberoot.cpp:23:15: error: unable to deduce ‘std::initializer_list<auto>’ from ‘<brace-enclosed initializer list>()’
cuberoot.cpp:23:15: note: couldn’t deduce template parameter ‘auto’