/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<stdio.h>
 ^
foo.cpp: In function 'void flo(long long int, long long int, long long int, long long int, int)':
foo.cpp:8:19: error: 'x2' was not declared in this scope
 while((k>=1)&&(l>=x2[k]||r<=x1[k]||b>=y2[k]||t<=y1[k])) k--;
                   ^
foo.cpp:8:29: error: 'x1' was not declared in this scope
 while((k>=1)&&(l>=x2[k]||r<=x1[k]||b>=y2[k]||t<=y1[k])) k--;
                             ^
foo.cpp:8:39: error: 'y2' was not declared in this scope
 while((k>=1)&&(l>=x2[k]||r<=x1[k]||b>=y2[k]||t<=y1[k])) k--;
                                       ^
foo.cpp:8:49: error: 'y1' was not declared in this scope
 while((k>=1)&&(l>=x2[k]||r<=x1[k]||b>=y2[k]||t<=y1[k])) k--;
                                                 ^
foo.cpp:10:6: error: 'x1' was not declared in this scope
 if(l<x1[k]) {flo(l,x1[k],b,t,k);l=x1[k];} if(r>x2[k]) {flo(x2[k],r,b,t,k);r=x2[k];}
      ^
foo.cpp:10:48: error: 'x2' was not declared in this scope
 if(l<x1[k]) {flo(l,x1[k],b,t,k);l=x1[k];} if(r>x2[k]) {flo(x2[k],r,b,t,k);r=x2[k];}
                                                ^
foo.cpp:11:6: error: 'y1' was not declared in this scope
 if(b<y1[k]) {flo(l,r,b,y1[k],k);b=y1[k];} if(t>y2[k]) {flo(l,r,y2[k],t,k);t=y2[k];}
      ^
foo.cpp:11:48: error: 'y2' was not declared in this scope
 if(b<y1[k]) {flo(l,r,b,y1[k],k);b=y1[k];} if(t>y2[k]) {flo(l,r,y2[k],t,k);t=y2[k];}
                                                ^
foo.cpp: In function 'int main()':
foo.cpp:17:14: error: 'scanf' was not declared in this scope
 scanf("%d",&n);
              ^
foo.cpp:19:34: error: 'x1' was not declared in this scope
 scanf("%I64d %I64d %I64d %I64d",&x1[i],&y1[i],&x2[i],&y2[i]);
                                  ^
foo.cpp:19:41: error: 'y1' was not declared in this scope
 scanf("%I64d %I64d %I64d %I64d",&x1[i],&y1[i],&x2[i],&y2[i]);
                                         ^
foo.cpp:19:48: error: 'x2' was not declared in this scope
 scanf("%I64d %I64d %I64d %I64d",&x1[i],&y1[i],&x2[i],&y2[i]);
                                                ^
foo.cpp:19:55: error: 'y2' was not declared in this scope
 scanf("%I64d %I64d %I64d %I64d",&x1[i],&y1[i],&x2[i],&y2[i]);
                                                       ^
foo.cpp:21:5: error: 'x1' was not declared in this scope
 flo(x1[i],x2[i],y1[i],y2[i],i-1);
     ^
foo.cpp:21:11: error: 'x2' was not declared in this scope
 flo(x1[i],x2[i],y1[i],y2[i],i-1);
           ^
foo.cpp:21:17: error: 'y1' was not declared in this scope
 flo(x1[i],x2[i],y1[i],y2[i],i-1);
                 ^
foo.cpp:21:23: error: 'y2' was not declared in this scope
 flo(x1[i],x2[i],y1[i],y2[i],i-1);
                       ^
foo.cpp:22:19: error: 'printf' was not declared in this scope
 printf("%I64d",res);
                   ^
foo.cpp:16:7: warning: unused variable 'k' [-Wunused-variable]
 int i,k;
       ^

信息

递交者
类型
递交
题目
P1056 图形面积
语言
C++
递交时间
2016-03-07 21:12:34
评测时间
2016-03-07 21:12:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes