F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_27749115_3526.cpp:17:18: error: stray '#' in program
     if(a[j]<a[i])#include<iostream>
                  ^
0_0_27749115_3526.cpp:4:11: error: '::main' must return 'int'
 void main()
           ^
0_0_27749115_3526.cpp: In function 'int main()':
0_0_27749115_3526.cpp:17:19: error: 'include' was not declared in this scope
     if(a[j]<a[i])#include<iostream>
                   ^
0_0_27749115_3526.cpp:17:27: error: 'iostream' was not declared in this scope
     if(a[j]<a[i])#include<iostream>
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:68:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++config.h:186:1: error: expected primary-expression before 'namespace'
 namespace std
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:69:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_relops.h:67:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:36:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:42:1: error: 'namespace' definition is not allowed here
 namespace std
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:52:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:59:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:149:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:65:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:43:1: error: 'namespace' definition is not allowed here
 namespace std
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:77:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functexcept.h:42:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/cpp_type_traits.h:68:1: error: 'namespace' definition is not allowed here
 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/cpp_type_traits.h:78:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:37:1: error: 'namespace' definition is not allowed here
 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/numeric_traits.h:37:1: error: 'namespace' definition is not allowed here
 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:70:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/debug/debug.h:46:1: error: 'namespace' definition is not allowed here
 namespace std
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/debug/debug.h:54:1: error: 'namespace' definition is not allowed here
 namespace __gnu_debug
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:67:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ptr_traits.h:37:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:68:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:695:1: error: 'namespace' definition is not allowed here
 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:928:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:33:1: error: 'namespace' definition is not allowed here
 namespace __gnu_cxx
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_27749115_3526.cpp:18:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:73:1: error: 'namespace' definition is not allowed here
 namespace std _GLIBCXX_VISIBILITY(default)
 ^
In file included from D:/HDOJ/Compi


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 07:53:54, Gzip enabled