Borderou de evaluare (job #2000273)
Utilizator | Data | 13 iulie 2017 12:04:20 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:12: error: ‘int y1 [200005]’ redeclared as different kind of symbol
int y1[NMAX];
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:61:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[nr]=a[i].y;
^
user.cpp:61:19: error: assignment of read-only location ‘*(y1 + ((sizetype)nr))’
y1[nr]=a[i].y;
^
user.cpp:61:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:69:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
printf("%d %d\n",x1[i],y1[i]);
^
user.cpp:69:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
printf("%d %d\n",x1[i],y1[i]);
^
user.cpp:42:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.in","r",stdin);
^
user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.out","w",stdout);
^
user.cpp:45:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:52:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !