start
#include <iostream>
int main() {
std::cout << "0x1RIS\n";
return 0;
}
Output:
0x1RIS
Compile
g++ -std=c++23 -Wall -Wextra -Werror main.cpp -o main
-std=c++23 selects the current published standard
The two warning flags catch suspicious code
-Werror stops you from shipping with a warning you already saw
Headers
Use the standard headers explicitly
<iostream> for streams, <vector> for vectors, <string> for strings
The old bits/stdc++.h shortcut is not portable, do not teach it as a default
Next
Types in 02 types
Posted