foo.cc:1:1: error: 'include' does not name a type
include<iostream>
^~~~~~~
In file included from /usr/include/c++/7/cmath:43:0,
from foo.cc:2:
/usr/include/c++/7/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
__is_null_pointer(std::nullptr_t)
^
/usr/include/c++/7/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++/7/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:8:5: error: 'cin' was not declared in this scope
cin >> n ;
^~~
foo.cc:8:5: note: suggested alternative: 'sin'
cin >> n ;
^~~
sin
foo.cc:9:19: error: 'cout' was not declared in this scope
if ( n < 10 ) cout << n ;
^~~~
foo.cc:9:19: note: suggested alternative: 'cosl'
if ( n < 10 ) cout << n ;
^~~~
cosl
foo.cc:22:21: error: 'cout' was not declared in this scope
if (m == 0) cout << (num % 10) ;
^~~~
foo.cc:22:21: note: suggested alternative: 'cosl'
if (m == 0) cout << (num % 10) ;
^~~~
cosl
foo.cc:27:14: error: 'cout' was not declared in this scope
cout << n ;
^~~~
foo.cc:27:14: note: suggested alternative: 'cosl'
cout << n ;
^~~~
cosl
foo.cc:30:5: error: 'cout' was not declared in this scope
cout << endl ;
^~~~
foo.cc:30:5: note: suggested alternative: 'cosl'
cout << endl ;
^~~~
cosl
foo.cc:30:13: error: 'endl' was not declared in this scope
cout << endl ;
^~~~
foo.cc:30:13: note: suggested alternative: 'ynl'
cout << endl ;
^~~~
ynl
[Hydro](https://hydro.ac)提供评测服务