0_0_39233786_18551.cpp:4:1: error: '::main' must return 'int'
4 | void main(){
| ^~~~
0_0_39233786_18551.cpp: In function 'int main()':
0_0_39233786_18551.cpp:18:19: error: 'strlen' was not declared in this scope
18 | int j=strlen(s)-1;
| ^~~~~~
0_0_39233786_18551.cpp:2:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | #include<string>
|