0_0_37164873_11841.cpp:1:11: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_37164873_11841.cpp: In function 'bool Judge(Coord&, Coord&, Coord&, Coord&)':
0_0_37164873_11841.cpp:16:21: error: 'min' was not declared in this scope
if(!(min(a.x,b.x)<=max(c.x,d.x) && min(c.y,d.y)<=max(a.y,b.y)&&
^
0_0_37164873_11841.cpp:16:35: error: 'max' was not declared in this scope
if(!(min(a.x,b.x)<=max(c.x,d.x) && min(c.y,d.y)<=max(a.y,b.y)&&
^
0_0_37164873_11841.cpp: In function 'int main()':
0_0_37164873_11841.cpp:32:11: error: 'cin' was not declared in this scope
while(cin>>n && n!=0)
^
0_0_37164873_11841.cpp:36:9: error: expected ';' before '{' token
{
^
0_0_37164873_11841.cpp:36:9: error: expected primary-expression before '{' token
0_0_37164873_11841.cpp:36:9: error: expected ')' before '{' token
0_0_37164873_11841.cpp:40:13: error: expected ';' before 'for'
for(int j=i+1;j
^
0_0_37164873_11841.cpp:40:13: error: expected primary-expression before 'for'
0_0_37164873_11841.cpp:40:13: error: expected ')' before 'for'
0_0_37164873_11841.cpp:41:17: error: expected ';' before 'if'
if(Judge(str[i].a,str[i].b,str[j].a,str[j].b)) count++;
^
0_0_37164873_11841.cpp:41:17: error: expected primary-expression before 'if'
0_0_37164873_11841.cpp:41:17: error: expected ')' before 'if'
0_0_37164873_11841.cpp:42:9: error: 'cout' was not declared in this scope
cout<<count<<endl;
^
0_0_37164873_11841.cpp:42:22: error: 'endl' was not declared in this scope
cout<<count<<endl;
^
|