Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 9.2.0

Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:71:10: error: expected unqualified-id before 'not' token
   71 |     auto not = [](bool x){ return !x;};      // これがエラーになる
      |          ^~~
prog.cc:74:27: error: expected primary-expression before ',' token
   74 |     auto ret = myFmap( not, true);
      |                           ^
Exit Code:
1