Borderou de evaluare (job #1955666)
Utilizator | Data | 6 aprilie 2017 09:47:45 | |
---|---|---|---|
Problema | Xor3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:8: error: ‘int j1’ redeclared as different kind of symbol
int i1,j1,a,b,q,nrq,maxi;
^
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 ‘int main()’:
user.cpp:41:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d%d%d%d%d%lld",&q,&i1,&j1,&a,&b,&m);
^
user.cpp:42:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
genint(i1,j1,1);
^
user.cpp:26:6: error: initializing argument 2 of ‘void genint(int, int, int)’ [-fpermissive]
void genint(int lin,int col,int nr)
^
user.cpp:39: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:40: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);
^
user.cpp:41:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d%lld",&q,&i1,&j1,&a,&b,&m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !