Hello,
I am trying to compile this code but compiler says that there are some errors here:
|9|error: use of undeclared identifier 'tuple'|
|9|error: expected '(' for function-style cast or type construction|
|10|error: use of undeclared identifier 't1'|
|11|error: use of undeclared identifier 't1'|
|12|error: use of undeclared identifier 't1'|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Could you please explain me why 'tuple' is an undeclared identifier?
I use CodeBlocks on Mac.
Your code runs on the shell: http://cpp.sh/6bsju , so it's a problem with your compiler settings.
On Windows you would set it like this:
Settings->Compiler... ->Compiler Settings -> Compiler Flags -> General choose the second option
[-std=C++11]
I hope it will work on Mac as well.
Excellent and good luck with it, I doubt you'll go back. If you need GUI stuff with a mac Qt Creator is great too. Codeblocks used to be great, wx widgets and all that, but not so much any more. :)