Код: Выделить всё
$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Код: Выделить всё
#include
using namespace std;
static int x = 5053;
void f2();
int main() {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78411836/incorrect-return-type-allowed-for-forward-declared-function-why-is-there-no-lin[/url]