Borderou de evaluare (job #1333715)
Utilizator | Data | 3 februarie 2015 15:15:32 | |
---|---|---|---|
Problema | Muzeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:31: error: ‘int y0 [65025]’ redeclared as different kind of symbol
int x0[Nmax*Nmax],y0[Nmax*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:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void citire()’:
user.cpp:28:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(ch=='P') {x0[++k]=i; y0[k]=j;}
^
user.cpp:28:38: error: assignment of read-only location ‘*(y0 + ((sizetype)k))’
if(ch=='P') {x0[++k]=i; y0[k]=j;}
^
user.cpp:28:38: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp: In function ‘int main()’:
user.cpp:84:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
parcurgere(x0[i],y0[i]);
^
user.cpp:84:26: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:35:6: error: initializing argument 2 of ‘void parcurgere(int, int)’ [-fpermissive]
void parcurgere(int p,int q)
^
user.cpp: In function ‘void citire()’:
user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("muzeu.in","r",stdin);
^
user.cpp:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:25:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
user.cpp: In function ‘void afisare()’:
user.cpp:68:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("muzeu.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !