Advertisement
Guest User

Untitled

a guest
Oct 30th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. g++ -std=gnu++11 1.cpp
  2. 1.cpp: In function ‘int main()’:
  3. 1.cpp:4:19: error: two consecutive ‘[’ shall only introduce an attribute before ‘[’ token
  4. std::cout << s[[]{ return 1; }()];
  5. ^
  6. 1.cpp:4:19: error: expected ‘;’ before ‘[’ token
  7. 1.cpp:4:36: error: expected primary-expression before ‘)’ token
  8. std::cout << s[[]{ return 1; }()];
  9. ^
  10. 1.cpp:4:37: error: expected ‘;’ before ‘]’ token
  11. std::cout << s[[]{ return 1; }()];
  12. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement