Problem minimum
User rajatshenoi
Submission Time 2023-01-17 15:28:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:10: error: invalid conversion from ‘int**’ to ‘int’ [-fpermissive]
6 | int B = &A;
| ^~
| |
| int**
minimum.cpp:7:9: error: request for member ‘begin’ in ‘B’, which is of non-class type ‘int’
7 | sort(B.begin(), B.end());
| ^~~~~
minimum.cpp:7:20: error: request for member ‘end’ in ‘B’, which is of non-class type ‘int’
7 | sort(B.begin(), B.end());
| ^~~
minimum.cpp:7:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
7 | sort(B.begin(), B.end());
| ^~~~
| short
minimum.cpp:8:15: error: invalid types ‘int[int]’ for array subscript
8 | return B[0];
| ^