0_0_36518079_15145.cpp:1:1: error: 'truct' does not name a type
truct node
^
0_0_36518079_15145.cpp:5:2: error: 's' does not name a type
}s[1005];
^
0_0_36518079_15145.cpp:6:10: error: 'node' was not declared in this scope
bool cmp(node a,node b)
^
0_0_36518079_15145.cpp:6:17: error: 'node' was not declared in this scope
bool cmp(node a,node b)
^
0_0_36518079_15145.cpp:6:23: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(node a,node b)
^
0_0_36518079_15145.cpp:7:1: error: expected ',' or ';' before '{' token
{
^
0_0_36518079_15145.cpp: In function 'int main()':
0_0_36518079_15145.cpp:21:11: error: 'cin' was not declared in this scope
while(cin>>n)
^
0_0_36518079_15145.cpp:25:9: error: 's' was not declared in this scope
cin>>s[i].a>>s[i].b>>s[i].c;
^
0_0_36518079_15145.cpp:28:8: error: 's' was not declared in this scope
sort(s+1,s+n+1,cmp);
^
0_0_36518079_15145.cpp:28:21: error: 'sort' was not declared in this scope
sort(s+1,s+n+1,cmp);
^
0_0_36518079_15145.cpp:29:3: error: 'cout' was not declared in this scope
cout<<s[1].index;
^
0_0_36518079_15145.cpp:32:9: error: 'endl' was not declared in this scope
cout<<endl;
^
|