Borderou de evaluare (job #1727984)
Utilizator | Data | 11 iulie 2016 23:52:57 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:39: error: ‘int pow’ redeclared as different kind of symbol
int i,j,n,m,pas,ok,nr,s,a[17][17],z,k,pow,pow2,v[17];
^
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:155:1: error: previous declaration of ‘double pow(double, double)’
__MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
user.cpp: In function ‘int main()’:
user.cpp:44:9: error: overloaded function with no contextual type information
pow=1<<n;
^
user.cpp:45:17: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’
for(k=1;k<=pow;k++)
^
user.cpp: In function ‘void citeste(int&)’:
user.cpp:18:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,DIM,stdin),poz=0;
^
user.cpp:24:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,DIM,stdin),poz=0;
^
user.cpp: In function ‘int main()’:
user.cpp:31:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flip.in","r",stdin);
^
user.cpp:32:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flip.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !