Submission #6865938


Source Code Expand

#include<bits/stdc++.h>

using namespace std ;

int main(){
    int n , a , Min = 1e9 ;
    cin >> n ;
    for(int i = 1 ; i <= n ; i++ ){
      cin >> a ;
         if(a<min) min=a;
    }
    cout<<min<<endl;
    return 0;
}

Submission Info

Submission Time
Task B - おいしいたこ焼きの食べ方
User luogu_bot4
Language C++14 (GCC 5.4.1)
Score 0
Code Size 224 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:15: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
          if(a<min) min=a;
               ^
./Main.cpp:10:23: error: overloaded function with no contextual type information
          if(a<min) min=a;
                       ^
./Main.cpp:12:9: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘<unresolved overloaded function type>’)
     cout<<min<<endl;
         ^
In file included from /usr/include/c++/5/istream:39:0,
                 from /usr/include/c++/5/sstream:38,
                 from /usr/include/c++/5/complex:45,
                 from /usr/include/c++/5/ccomplex:38,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/include/c++/5/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ost...