Even on Windows you have to know that read is an internal function which is used by cin, otherwise the following with crash when compiled with -static:
#include <iostream>
int read;
int main(){
std::ios_base::sync_with_stdio(false);
std::cin >> read;
}
https://stackoverflow.com/questions/69424363/is-it-allowed-to-name-a-global-variable-read-or-malloc-in-c
Even on Windows you have to know that
read
is an internal function which is used bycin
, otherwise the following with crash when compiled with-static
:Inspired by real world example at https://codeforces.com/blog/entry/95574