Problem minimum
User shawn
Submission Time 2024-04-12 19:04:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude<bits/stdc++.h>
| ^~~~~~~
| include
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:7: error: ‘a’ was not declared in this scope
5 | sort(a, a+n);
| ^
minimum.cpp:5:12: error: ‘n’ was not declared in this scope
5 | sort(a, a+n);
| ^
minimum.cpp:5:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
5 | sort(a, a+n);
| ^~~~
| short
minimum.cpp:6:2: error: ‘cout’ was not declared in this scope
6 | cout << a[0];
| ^~~~
minimum.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude<bits/stdc++.h>