Borderou de evaluare (job #1338206)
Utilizator | Data | 9 februarie 2015 21:02:21 | |
---|---|---|---|
Problema | Parc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:49:13: error: ‘i’ was not declared in this scope
for(i=L;i<=R;i++)
^
user.cpp:55:13: error: ‘i’ was not declared in this scope
for(i=D;i<=U;i++)
^
user.cpp:68:9: error: ‘i’ was not declared in this scope
for(i=L;i<R;i+=2)CX+=X[i+1]-X[i];
^
user.cpp:69:9: error: ‘i’ was not declared in this scope
for(i=D;i<U;i+=2)CY+=Y[i+1]-Y[i];
^
user.cpp:75:13: error: ‘i’ was not declared in this scope
for(n=0,i=L+1;i<=R;i+=2,n++)X[n+1]=X[n]+X[i]-X[i-1];
^
user.cpp:76:13: error: ‘i’ was not declared in this scope
for(m=0,i=D+1;i<=U;i+=2,m++)Y[m+1]=Y[m]+Y[i]-Y[i-1];
^
user.cpp:79:9: error: ‘i’ was not declared in this scope
for(i=1,j=1,U=1;i<n&&j<m;)
^
user.cpp:79:13: error: ‘j’ was not declared in this scope
for(i=1,j=1,U=1;i<n&&j<m;)
^
user.cpp:13:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("parc.in","r",stdin);
^
user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("parc.out","w",stdout);
^
user.cpp:15:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &XP, &YP);XP++;YP++;
^
user.cpp:16:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &xg, &yg);
^
user.cpp:17:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &xp, &yp);
^
user.cpp:19:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);m *= 2;
^
user.cpp:22:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&aux);
^
user.cpp:27:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:31:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !