0_0_34301077_15306.cpp:1:1: error: 'include' does not name a type
include <iostream>
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:43:0,
from 0_0_34301077_15306.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
__is_null_pointer(std::nullptr_t)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:155:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^
0_0_34301077_15306.cpp: In function 'int main()':
0_0_34301077_15306.cpp:8:21: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)&&n!=0){
^
0_0_34301077_15306.cpp:17:22: error: 'swap' was not declared in this scope
swap(a[k],a[k+1]);
^
0_0_34301077_15306.cpp:19:31: error: 'k' was not declared in this scope
printf(j==0?"%d\n":"%d ",a[k]);//k==j时跳出内层的for循环,此时a[k]就是最后一个数,直接输出。进入下一个外层for循环。
^
0_0_34301077_15306.cpp:19:33: error: 'printf' was not declared in this scope
printf(j==0?"%d\n":"%d ",a[k]);//k==j时跳出内层的for循环,此时a[k]就是最后一个数,直接输出。进入下一个外层for循环。
^
|