fortune_telling2.cpp: In function 'long long int get(long long int)':
fortune_telling2.cpp:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
26 | for(;x<=k;x+=x&-x)res+=f[x]; return res;
| ^~~
fortune_telling2.cpp:26:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
26 | for(;x<=k;x+=x&-x)res+=f[x]; return res;
| ^~~~~~
fortune_telling2.cpp: At global scope:
fortune_telling2.cpp:78:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
78 | main()
| ^
fortune_telling2.cpp: In function 'void file()':
fortune_telling2.cpp:75:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
75 | freopen("trash.inp", "r", stdin), freopen("trash.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
fortune_telling2.cpp:75:47: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
75 | freopen("trash.inp", "r", stdin), freopen("trash.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~