Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

clang 10.0.0

Options
Warnings
Optimization
Don't Use Boost
C++17
-pedantic

Author

anonymous

almost 5 years ago

$ clang++ prog.cc -Wall -Wextra -O2 -march=native -std=c++17 -pedantic
        -2   2   -3   3   -4   4   -5   5   -6   6   -7   7
-------------------------------------------------------------
  -10    0   0   -1   2   -2   2    0   0   -4   2   -3   4
   -9   -1   1    0   0   -1   3   -4   1   -3   3   -2   5
   -8    0   0   -2   1    0   0   -3   2   -2   4   -1   6
   -7   -1   1   -1   2   -3   1   -2   3   -1   5    0   0
   -6    0   0    0   0   -2   2   -1   4    0   0   -6   1
   -5   -1   1   -2   1   -1   3    0   0   -5   1   -5   2
   -4    0   0   -1   2    0   0   -4   1   -4   2   -4   3
   -3   -1   1    0   0   -3   1   -3   2   -3   3   -3   4
   -2    0   0   -2   1   -2   2   -2   3   -2   4   -2   5
   -1   -1   1   -1   2   -1   3   -1   4   -1   5   -1   6
    0    0   0    0   0    0   0    0   0    0   0    0   0
    1   -1   1   -2   1   -3   1   -4   1   -5   1   -6   1
    2    0   0   -1   2   -2   2   -3   2   -4   2   -5   2
    3   -1   1    0   0   -1   3   -2   3   -3   3   -4   3
    4    0   0   -2   1    0   0   -1   4   -2   4   -3   4
    5   -1   1   -1   2   -3   1    0   0   -1   5   -2   5
    6    0   0    0   0   -2   2   -4   1    0   0   -1   6
    7   -1   1   -2   1   -1   3   -3   2   -5   1    0   0
    8    0   0   -1   2    0   0   -2   3   -4   2   -6   1
    9   -1   1    0   0   -3   1   -1   4   -3   3   -5   2
   10    0   0   -2   1   -2   2    0   0   -2   4   -4   3
Exit Code:
0