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?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.programming
Subject Re: Feedback on sudoku solver and count-the-squares solver?
Date Mon, 18 Jul 2016 17:02:45 +0100
Organization A noiseless patient Spider
Lines 52
Message-ID <878twzhr2y.fsf@bsb.me.uk> (permalink)
References <bc6924b2-51f3-476d-b06c-2c235de57086@googlegroups.com> <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>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="11254"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZeAK9VqcRBlEerunvfx1iETCdEmlg7ks="
Cancel-Lock sha1:bi/5PNW/axa92m6fUkCAAKABAB0= sha1:2DFgMXjSG7E2LRBIo+voUuaZ3LI=
X-BSB-Auth 1.aa1c82eb49e6fa53eac9.20160718170245BST.878twzhr2y.fsf@bsb.me.uk
Xref csiph.com comp.programming:6745

Show key headers only | 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