Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 2 years ago

Language

C++

Compiler

gcc HEAD 14.0.0 20230712 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++17(GNU)
no pedantic

Author

anonymous

about 2 years ago

noname

$ 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
Exit Code:
0