Monday, April 27, 2009

long long long

Testing too much longs!

Test this:

#include "iostream"
using namespace std;

int main(){
long long long i;
cout<<"Hello World!\n";
}

The answer of gcc is...

$ g++ test.cpp
test.cpp: In function ‘int main()’:
test.cpp:4: error: ‘long long long’ is too long for GCC

I tested this 'cause sb else told me about.

2 comments:

Anonymous said...

test.cc:1:9: #include expects "FILENAME" or <FILENAME>
test.cc: In function `int main()':
test.cc:4: error: `long long long' is too long for GCC
test.cc:5: error: `cout' was not declared in this scope

Regards,
sb

Fredy Carranza-Athó said...

Ohhhhh!!!

hehehehe, it was my fault I didnt realize the blog manager doesnt allow me to post "<" and ">" so easily!

I just replaced it for "".