Borderou de evaluare (job #1122514)
Utilizator | Data | 25 februarie 2014 18:38:02 | |
---|---|---|---|
Problema | Plaja | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: ‘int16_t’ does not name a type
int16_t v[2001][2001],lu[101],cu[101];
^
user.cpp: In function ‘int main()’:
user.cpp:10:39: error: ‘lu’ was not declared in this scope
for (i=1;i<=u;i++) {fscanf(f,"%d %d",&lu[i],&cu[i]);
^
user.cpp:10:46: error: ‘cu’ was not declared in this scope
for (i=1;i<=u;i++) {fscanf(f,"%d %d",&lu[i],&cu[i]);
^
user.cpp:11:21: error: ‘v’ was not declared in this scope
v[lu[i]][cu[i]]=-1;}
^
user.cpp:15:48: error: ‘lu’ was not declared in this scope
for (j=1;j<=u;j++) if (x1<=lu[j]&&lu[j]<=x2&&y1<=cu[j]&&cu[j]<=y2) {ok=false;break;}
^
user.cpp:15:70: error: ‘cu’ was not declared in this scope
for (j=1;j<=u;j++) if (x1<=lu[j]&&lu[j]<=x2&&y1<=cu[j]&&cu[j]<=y2) {ok=false;break;}
^
user.cpp:17:78: error: ‘v’ was not declared in this scope
for (j=x1;j<=x2;j++) for (t=y1;t<=y2;t++) v[j][t]=-1;
^
user.cpp:25:67: error: ‘v’ was not declared in this scope
for (j=x1;j<=x2;j++) for (t=y1;t<=y2;t++) if (v[j][t]==-1) {ok=false;break;}
^
user.cpp:8:28: warning: unused variable ‘x’ [-Wunused-variable]
{int a,b,u,n,m,x1,y1,x2,y2,x,y,i,j,t,tur=0,loc=0;bool ok;
^
user.cpp:8:30: warning: unused variable ‘y’ [-Wunused-variable]
{int a,b,u,n,m,x1,y1,x2,y2,x,y,i,j,t,tur=0,loc=0;bool ok;
^
user.cpp:9:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d",&a,&b,&u);
^
user.cpp:12:18: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
user.cpp:13:62: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) {fscanf(f,"%d %d %d %d\n",&x1,&y1,&x2,&y2);
^
user.cpp:22:18: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&m);
^
user.cpp:23:62: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=m;i++) {fscanf(f,"%d %d %d %d\n",&x1,&y1,&x2,&y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !