cezar.cpp:1:6: error: stray '#' in program
v #include <bits/stdc++.h>
^
cezar.cpp:1:1: error: 'v' does not name a type
v #include <bits/stdc++.h>
^
cezar.cpp:7:5: error: 'string' does not name a type; did you mean 'struct'?
string tempstr[maxn];
^~~~~~
struct
cezar.cpp:8:5: error: 'string' does not name a type; did you mean 'struct'?
string str[maxn];
^~~~~~
struct
cezar.cpp:11:5: error: 'vector' does not name a type
vector<int>g[30], rg[30];
^~~~~~
cezar.cpp:13:5: error: 'vector' does not name a type
vector<int>order;
^~~~~~
cezar.cpp: In function 'void dfs(int)':
cezar.cpp:28:16: error: 'g' was not declared in this scope
for(int i:g[node]) {
^
cezar.cpp:38:6: error: 'order' was not declared in this scope
order.pb(node);
^~~~~
cezar.cpp: In function 'int main()':
cezar.cpp:42:6: error: 'cin' was not declared in this scope
cin>>n;
^~~
cezar.cpp:42:6: note: suggested alternative: 'main'
cin>>n;
^~~
main
cezar.cpp:44:12: error: 'tempstr' was not declared in this scope
cin>>tempstr[i];
^~~~~~~
cezar.cpp:44:12: note: suggested alternative: 'register'
cin>>tempstr[i];
^~~~~~~
register
cezar.cpp:50:7: error: 'str' was not declared in this scope
str[i] = tempstr[perm[i]];
^~~
cezar.cpp:50:16: error: 'tempstr' was not declared in this scope
str[i] = tempstr[perm[i]];
^~~~~~~
cezar.cpp:50:16: note: suggested alternative: 'register'
str[i] = tempstr[perm[i]];
^~~~~~~
register
cezar.cpp:55:11: error: 'str' was not declared in this scope
if(str[j].length() < str[i].length()) {
^~~
cezar.cpp:57:10: error: 'cout' was not declared in this scope
cout<<"NE\n";
^~~~
cezar.cpp:66:30: error: 'str' was not declared in this scope
for(int k=0;k<min(int(str[i].length()), int(str[j].length()));k++) {
^~~
cezar.cpp:66:22: error: 'min' was not declared in this scope
for(int k=0;k<min(int(str[i].length()), int(str[j].length()));k++) {
^~~
cezar.cpp:66:22: note: suggested alternative: 'main'
for(int k=0;k<min(int(str[i].length()), int(str[j].length()));k++) {
^~~
main
cezar.cpp:77:23: error: 'g' was not declared in this scope
if(edge[i][j]) g[i].pb(j);
^
cezar.cpp:86:7: error: 'cout' was not declared in this scope
cout<<"NE\n";
^~~~
cezar.cpp:90:6: error: 'cout' was not declared in this scope
cout<<"DA\n";
^~~~
cezar.cpp:92:20: error: 'order' was not declared in this scope
for(int i=0;i<order.size();i++) {
^~~~~