Problem | minimum |
---|---|
User | Priyankha13 |
Submission Time | 2023-10-13 21:36:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 |
4 | int findMin(int N, int A[]) {
| ~~~
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:8:11: error: expected ‘]’ before ‘}’ token
8 | x = A[i};
| ^
| ]
minimum.cpp:8:11: error: expected ‘;’ before ‘}’ token
8 | x = A[i};
| ^
| ;
minimum.cpp: At global scope:
minimum.cpp:12:2: error: expected unqualified-id before ‘return’
12 | return x;
| ^~~~~~
minimum.cpp:13:1: error: expected declaration before ‘}’ token
13 | }
| ^
minimum.cpp: In function ‘int main()’:
minimum.cpp:16:10: error: expected primary-expression before ‘int’
16 | findMin(int N, int A[])
| ^~~
minimum.cpp:16:17: error: expected primary-express