1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include<iostream> using namespace std; int N = 10; int main() { static int x = 1; if (cout << x << " " && x++ < N && main()) { } return 0; }
1 2 3
In function 'int main()': Line 14: error: ISO C++ forbids taking address of function '::main' compilation terminated due to -Wfatal-errors.