Borderou de evaluare (job #1397676)
Utilizator | Data | 23 martie 2015 17:57:43 | |
---|---|---|---|
Problema | Dreptunghiuri3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:13: error: ‘int j1’ redeclared as different kind of symbol
int n,i1,i2,j1,j2,m,k,i,j,p,sol,l;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:16:55: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d %d",&i1,&j1,&i2,&j2,&val[i]);
^
user.cpp:17:17: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript
a[i1][j1]+=val[i];
^
user.cpp:19:19: error: invalid types ‘int [2005][double(double)throw ()]’ for array subscript
a[i2+1][j1]-=val[i];
^
user.cpp:11:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dreptunghiuri3.in","r",stdin);
^
user.cpp:12:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dreptunghiuri3.out","w",stdout);
^
user.cpp:13:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&k); sol=0;
^
user.cpp:16:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d",&i1,&j1,&i2,&j2,&val[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !