Created
August 26, 2011 23:00
-
-
Save mmalecki/1174652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from test.cpp:1: | |
In file included from /usr/include/c++/4.6.0/string:41: | |
In file included from /usr/include/c++/4.6.0/bits/char_traits.h:40: | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:378:43: error: unexpected type name '_ValueTypeI': expected expression | |
const bool __simple = (__is_trivial(_ValueTypeI) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:383:40: error: non-type template argument of type 'bool const' is not an integral constant expression | |
return std::__copy_move<_IsMove, __simple, | |
^~~~~~~~ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:573:43: error: unexpected type name '_ValueType1': expected expression | |
const bool __simple = (__is_trivial(_ValueType1) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:578:49: error: non-type template argument of type 'bool const' is not an integral constant expression | |
return std::__copy_move_backward<_IsMove, __simple, | |
^~~~~~~~ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:731:32: error: expected ';' in 'for' statement specifier | |
for (__decltype(__n + 0) __niter = __n; | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:732:5: error: use of undeclared identifier '__niter' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:732:20: error: use of undeclared identifier '__niter' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:732:27: error: expected ')' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:731:11: note: to match this '(' | |
for (__decltype(__n + 0) __niter = __n; | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:743:32: error: expected ';' in 'for' statement specifier | |
for (__decltype(__n + 0) __niter = __n; | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:744:5: error: use of undeclared identifier '__niter' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:744:20: error: use of undeclared identifier '__niter' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:744:27: error: expected ')' | |
__niter > 0; --__niter, ++__first) | |
^ | |
/usr/include/c++/4.6.0/bits/stl_algobase.h:743:11: note: to match this '(' | |
for (__decltype(__n + 0) __niter = __n; | |
^ | |
12 errors generated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
string a = "test\n"; | |
cout << a; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment