记录详情

Compile Error

/in/foo.cc:1:1: error: stray '\357' in program
 #include<iostream>
 ^
/in/foo.cc:1:2: error: stray '\274' in program
 #include<iostream>
  ^
/in/foo.cc:1:3: error: stray '\203' in program
 #include<iostream>
   ^
/in/foo.cc:1:4: error: 'include' does not name a type
 #include<iostream>
    ^~~~~~~
In file included from /usr/include/c++/6/cmath:43:0,
                 from /in/foo.cc:2:
/usr/include/c++/6/ext/type_traits.h:162:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
   __is_null_pointer(std::nullptr_t)
                                   ^
/usr/include/c++/6/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
/usr/include/c++/6/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
     __is_null_pointer(_Type)
     ^~~~~~~~~~~~~~~~~
/usr/include/c++/6/ext/type_traits.h:162:21: error: 'nullptr_t' is not a member of 'std'
   __is_null_pointer(std::nullptr_t)
                     ^~~
/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:7:1: error: 'cout' was not declared in this scope
 cout<<a[i]<<" "; 
 ^~~~
/in/foo.cc:8:1: error: 'cout' was not declared in this scope
 cout<<endl;
 ^~~~
/in/foo.cc:8:7: error: 'endl' was not declared in this scope
 cout<<endl;
       ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:22: error: 'stdin' was not declared in this scope
 freopen("1.txt","r", stdin); 
                      ^~~~~
/in/foo.cc:19:27: error: 'freopen' was not declared in this scope
 freopen("1.txt","r", stdin); 
                           ^
/in/foo.cc:21:1: error: 'cin' was not declared in this scope
 cin>>n1>>n2;
 ^~~
/in/foo.cc:29:1: error: 'cout' was not declared in this scope
 cout<<FindMinCount(a,n1)<<" ";  // 1 cout<<FindMinCount(b,n2)<<endl;   // 2 
 ^~~~

信息

递交者
类型
递交
题目
A9-5 数组中最小值的个数
比赛
泰院2401程序设计基础作业赛第五场
语言
C++
递交时间
2024-11-19 08:13:03
评测时间
2024-11-19 08:13:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes