Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #6745

Re: Feedback on sudoku solver and count-the-squares solver?

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.programming
Subject Re: Feedback on sudoku solver and count-the-squares solver?
Date 2016-07-18 17:02 +0100
Organization A noiseless patient Spider
Message-ID <878twzhr2y.fsf@bsb.me.uk> (permalink)
References (1 earlier) <nmgeg3$34q$1@news.albasani.net> <eddf769d-f966-4f0a-a2ff-69caddb64d91@googlegroups.com> <nmh6tr$2l5$1@news.albasani.net> <9a5c4ff5-a322-4c84-94f7-e7b2a10b9d0a@googlegroups.com> <nmioqo$9rr$2@news.albasani.net>

Show all headers | View raw


root <NoEMail@home.org> writes:

> Paul <pepstein5@gmail.com> wrote:
>> On Monday, July 18, 2016 at 1:12:46 AM UTC+1, root wrote:
>>> Paul <pepstein5@gmail.com> wrote:
>>> > On Sunday, July 17, 2016 at 6:15:50 PM UTC+1, root wrote:
>>> >> Paul <pepstein5@gmail.com> wrote:
>>> >> > I have a sudoku solver in c++ here --
>>> >> > https://github.com/pauldepstein/Sudoku/blob/master/SudokuSolverWithHardestEver.cpp
>>> >> >
>>> >> > and I also have code for solving "count the squares" problems.
>>> >> > This is solved and tested here:
>>> >> > https://github.com/pauldepstein/CountSquares/blob/master/CountSquares.cpp
>>> >> > However, most of the lines of code involve setting up the
>>> >> > example.
>>> >> >
>>> >> > Any feedback would be welcome.
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Paul
>>> >> 
>>> >> Feedback: your sudoku solver will not compile using gcc 5.3.0
>>> >
>>> > Do you have C++11 enabled?
>>> >
>>> > Paul
>>> 
>>> I have c++14

But not enabled.

>> What error message do you get?
>
> I,m sorry Paul, but there were 302 lines of error messages. Here is a sample:
> In file included from /usr/include/c++/5.3.0/unordered_map:35:0,
>                  from sudokusolver.cpp:12:
> /usr/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This
> file requires compiler and library support for the ISO C++ 2011
> standard. This support is currently experimental, and must be enabled
> with the -std=c++11 or -std=gnu++11 ...

<snip>
> My command line was:
> gcc sudokusolver.cpp -o sudokusolver

try

  g++ -std=c++11 sudokusolver.cpp -o sudokusolver

-- 
Ben.

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Feedback on sudoku solver and count-the-squares solver? Paul <pepstein5@gmail.com> - 2016-07-17 09:43 -0700
  Re: Feedback on sudoku solver and count-the-squares solver? root <NoEMail@home.org> - 2016-07-17 17:15 +0000
    Re: Feedback on sudoku solver and count-the-squares solver? Paul <pepstein5@gmail.com> - 2016-07-17 11:32 -0700
      Re: Feedback on sudoku solver and count-the-squares solver? root <NoEMail@home.org> - 2016-07-18 00:12 +0000
        Re: Feedback on sudoku solver and count-the-squares solver? Paul <pepstein5@gmail.com> - 2016-07-17 23:53 -0700
          Re: Feedback on sudoku solver and count-the-squares solver? root <NoEMail@home.org> - 2016-07-18 14:24 +0000
            Re: Feedback on sudoku solver and count-the-squares solver? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-07-18 17:02 +0100
              Re: Feedback on sudoku solver and count-the-squares solver? root <NoEMail@home.org> - 2016-07-18 16:51 +0000
            Re: Feedback on sudoku solver and count-the-squares solver? Paul <pepstein5@gmail.com> - 2016-07-18 09:03 -0700
              Re: Feedback on sudoku solver and count-the-squares solver? Paul <pepstein5@gmail.com> - 2016-07-18 09:05 -0700

csiph-web