A.cpp: In function 'float sr(float)':
A.cpp:2:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int i=0x5f3759df-((*(int*)&y)>>1);
^
A.cpp:4:14: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
y=*(float*)&i;
^
A.cpp: At global scope:
A.cpp:17:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *func="2a#05H6bu07G21h42U26n3bU37>e9H41!eb}35i34p3a(3a*e6K44ve5N56<ca%9e]c7Xa1hc4>64]c5wb6Mb3gbbkb9x67]04M39Gf7<44Wdcx94mde^4ai26#4c!23H3f<edj39k32jf7i44rdc a1<8e&9c%";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.cpp:18:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *u="!@#$%^&*()1234567890QWERTYUIOPqwertyuiopASDFGHJKLasdfghjklZXCVBNMzxcvbnm,./<>?{}[]+=";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.cpp:19:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *def="2ai05i1eS46s1fy47#22v4c&19u07o5f^10u65Q09R5b%c5%a3!c2I6dzbdZ";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.cpp:20:18: error: ISO C++ forbids declaration of 'pr' with no type [-fpermissive]
pr(char *t,int *k) {
^
A.cpp: In function 'int pr(char*, int*)':
A.cpp:23:3: error: 'sscanf' was not declared in this scope
sscanf(t,"%x",&c);
^~~~~~
A.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
A.cpp: At global scope:
A.cpp:33:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *pr1="2aK05I5eQ0aZ57o1bs05U25]4bI27Z48g1a)06j37ie9w39Xfev32V37Hf9g39m07Z2f[08p40qf0v47*09W2dG37s1aI48hebX55ge2h83R9fx90&9ag";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.cpp:34:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char *pr2="2au05!1dp35v2d>06P52He5k80xcfy97wca[8fna7g8dSc7}9cLc9(7esb7Uad{cct98X9cOd6*5fH05j6d}c4(9eOaek83Sadkb1I81gb0h98q8a<b1$7e@acn";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.cpp:36:6: error: ISO C++ forbids declaration of 'half' with no type [-fpermissive]
half() {
^
A.cpp: In function 'int half()':
A.cpp:62:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
A.cpp: At global scope:
A.cpp:64:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
A.cpp: In function 'int main()':
A.cpp:76:9: error: 'puts' was not declared in this scope
return puts(p);
^~~~
A.cpp:76:9: note: suggested alternative: 'auto'
return puts(p);
^~~~
auto