Compiler output
prog.cpp:15:106: warning: integer constant is so large that it is unsigned
1100087778366101931, 1779979416004714189, 2880067194370816120, 4660046610375530309, 7540113804746346429, 12200160415121876738};
^
prog.cpp: In function 'int main()':
prog.cpp:33:41: error: expected primary-expression before '}' token
if(X > 2305843009213693952) while(1)}{}
^
prog.cpp:29:27: warning: unused variable 'index' [-Wunused-variable]
unsigned long long X, index;
^
prog.cpp: At global scope:
prog.cpp:33:42: error: expected unqualified-id before '{' token
if(X > 2305843009213693952) while(1)}{}
^
prog.cpp:35:5: error: 'index' does not name a type
index = binary_search(X);
^
prog.cpp:37:5: error: expected unqualified-id before 'if'
if(Fibonacci[index] == X) index--;
^
prog.cpp:39:11: error: expected constructor, destructor, or type conversion before '(' token
printf("%llu", index);
^
prog.cpp:41:1: error: expected unqualified-id before 'return'
return 0;
^
prog.cpp:42:1: error: expected declaration before '}' token
}
^