Banner Home Page DIY Contests Problems Ranklist Status Statistics
1034数据再次加强,如果还能水过我不管了……

View Compilation Error

2_28141_2124146_6508.cpp: In function 'int main()':
2_28141_2124146_6508.cpp:9:2: error: 'cin' was not declared in this scope
  cin >> t&&t > 0;
  ^
2_28141_2124146_6508.cpp:9:2: note: suggested alternative:
In file included from 2_28141_2124146_6508.cpp:1:0:
4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
2_28141_2124146_6508.cpp:16:19: error: 'swap' was not declared in this scope
    swap(a[j], a[l]);
                   ^
2_28141_2124146_6508.cpp:16:19: note: suggested alternatives:
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 2_28141_2124146_6508.cpp:2:
4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note:   'std::swap'
   swap(bool& __x, _Bit_reference __y) noexcept
   ^
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from 4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 2_28141_2124146_6508.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
2_28141_2124146_6508.cpp:18:3: error: 'cout' was not declared in this scope
   cout << "Case " << ++b << ": " << c << endl;
   ^
2_28141_2124146_6508.cpp:18:3: note: suggested alternative:
In file included from 2_28141_2124146_6508.cpp:1:0:
4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
2_28141_2124146_6508.cpp:18:42: error: 'endl' was not declared in this scope
   cout << "Case " << ++b << ": " << c << endl;
                                          ^
2_28141_2124146_6508.cpp:18:42: note: suggested alternative:
In file included from 4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 2_28141_2124146_6508.cpp:1:
4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^