Problem | minimum |
---|---|
User | Username101 |
Submission Time | 2025-07-01 08:07:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:4:27: error: use of parameter outside function body before ‘]’ token
4 | int findMin(int N, int A[N]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:6:17: error: ‘N’ was not declared in this scope
6 | for (int i=0;i<N;i++) {
| ^
minimum.cpp:7:7: error: ‘A’ was not declared in this scope
7 | if (A[i}<smol) {
| ^
minimum.cpp:7:10: error: expected ‘]’ before ‘}’ token
7 | if (A[i}<smol) {
| ^
| ]
minimum.cpp:7:10: error: expected ‘)’ before ‘}’ token
7 | if (A[i}<smol) {
| ~ ^
| )
minimum.cpp:7:10: error: expected primary-expression before ‘}’ token
minimum.cpp:7:11: error: expected primary-expression before ‘<’ token
7 | if (A[i}<smol) {
| ^
minimum.cpp: At global scope:
minimum.cpp:11:2: error: ‘cout’ do