Borderou de evaluare (job #1964390)
Utilizator | Data | 13 aprilie 2017 13:24:15 | |
---|---|---|---|
Problema | Xor3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:10: error: ‘int j1’ redeclared as different kind of symbol
int q,i1,j1,a,b,m;
^
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/iostream:38,
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 ‘void citire()’:
user.cpp:14:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d%d%d%d%d%d",&q,&i1,&j1,&a,&b,&m);
^
user.cpp: In function ‘void setList()’:
user.cpp:19:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
int iaux=i1,jaux=j1;
^
user.cpp: In function ‘void citire()’:
user.cpp:14:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d%d",&q,&i1,&j1,&a,&b,&m);
^
user.cpp: In function ‘int main()’:
user.cpp:59:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("xor3.in","r",stdin);
^
user.cpp:60:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("xor3.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !