trol.cpp:9:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
9 | main(){
| ^~~~
trol.cpp: In function 'int main()':
trol.cpp:49:16: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
49 | if(((r-l+1)%10!=0){
| ^
trol.cpp:49:31: error: expected ';' before '{' token
49 | if(((r-l+1)%10!=0){
| ^
| ;
trol.cpp:60:53: error: expected ')' before ';' token
60 | ans+=(double)(ok1*j)+(int)((r-l+1)/10)*j;
| ^
| )
trol.cpp:49:15: note: to match this '('
49 | if(((r-l+1)%10!=0){
| ^
trol.cpp:47:23: warning: unused variable 'ok2' [-Wunused-variable]
47 | int ok1=0,ok2=0;
| ^~~