Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.1 20210317 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc: In function 'void mpf(int)':
prog.cc:15:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |                 for(int j=d[i];j<primes.size()&&primes[j]*i<=N;j++)d[primes[j]*i]=j;
      |                                ~^~~~~~~~~~~~~~
2 2
3 3
4 2
5 5
6 3
7 7
8 2
9 3
10 5
11 11
12 3
13 13
14 7
15 5
16 2
17 17
18 3
19 19
20 5

2 2
3 3
4 2
5 5
6 2
7 7
8 2
9 3
10 2
11 11
12 2
13 13
14 2
15 3
16 2
17 17
18 2
19 19
20 2
Exit Code:
0