Problem minimum
User RendezvousAnonymous
Submission Time 2023-11-09 09:35:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:90:12: error: request for member ‘size’ in ‘A’, which is of non-class type ‘int*’
90 | int x = A.size();
| ^~~~
minimum.cpp:91:11: error: expected identifier before numeric constant
91 | int j = [0];
| ^
minimum.cpp: In lambda function:
minimum.cpp:91:13: error: expected ‘{’ before ‘;’ token
91 | int j = [0];
| ^
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:91:13: error: invalid user-defined conversion from ‘findMin(int, int*)::<lambda()>’ to ‘int’ [-fpermissive]
minimum.cpp:91:10: note: candidate is: ‘constexpr findMin(int, int*)::<lambda()>::operator void (*)()() const’ <near match>
91 | int j = [0];
| ^
minimum.cpp:91:10: note: no known conversion from ‘void (*)()’ to ‘int’
minimum.cpp:93:11: error: ‘arr’ was not declared in this scope
93 | if (