Problem minimum
User Khai
Submission Time 2024-10-07 08:11:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int main()’:
minimum.cpp:8:2: error: expected primary-expression before ‘long’
8 | long long a = 0;
| ^~~~
minimum.cpp:11:18: error: expected ‘;’ before ‘<’ token
11 | for(int i = 0, i < n; i++){
| ^~
| ;
minimum.cpp:11:19: error: expected primary-expression before ‘<’ token
11 | for(int i = 0, i < n; i++){
| ^
minimum.cpp:12:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
12 | cin << arr[i];
| ~~~ ^~ ~~~~~~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
minimum.cpp:12:6: note: candidate: ‘operator<<(int, long long int)’ <built-in>
12 | cin << arr[i];
| ~~~~^~~~~~~~~
minimum.cpp:12:6: note: no known