put the #define into the main function:
#include <iostream> using namespace std; int main() { #define int long long int //your code }
the downside is that this won't work for functions.