Language
C++
Compiler
gcc HEAD 14.0.0 20230712 (experimental)
Options
Warnings
Optimization
Don't Use Boost
C++17(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=gnu++17
0
1
2
Exit Code:
0
Author
anonymous
about 2 years ago
C++
gcc HEAD 14.0.0 20230712 (experimental)
Author
anonymous
about 2 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=gnu++17
prog.cc: In function 'int main()':
prog.cc:3:37: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
3 | #define rep(i, n) for (int i = 0; i < n; ++i)
| ^
prog.cc:7:5: note: in expansion of macro 'rep'
7 | rep(i, k & 1) {
| ^~~
0
1
2