String sort- stl challenge

#include
#include<bits/stdc++.h>
using namespace std;

bool comp(string a,string b){
if (a.size()<=b.size()&& b.substr(0,a.size())==a) return false;
else if (b.size()<=a.size() && a.substr(0,b.size())==b) return true;
else return a<b;

}
int main() {
int t;
cin>>t;
string full[1001];
for (int i = 0;i<t;i++){

	cin>>full[i];
}

for (int i = 0;i<t;i++){
	for (int j = i;j<t;j++){
		if (!comp(full[i],full[j])){
			full[i].swap(full[j]);
			
		}
	}
}

for (int i = 0;i<t;i++){
	cout<<full[i]<<endl;
}
return 0;

}

please lemme know why this isn’t working

Hey Shambhavi!, it works fine and is accepted, where are you facing problem?

In the first line why you have written "#include " and then nothing thereafter, this might be the issue!!

yes thank you got it!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.