Borderou de evaluare (job #2001090)
Utilizator | Data | 15 iulie 2017 17:45:14 | |
---|---|---|---|
Problema | Kbiti | Status | done |
Runda | kek | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:22: error: ‘long long int pow’ redeclared as different kind of symbol
long long int sol,ad,pow,t;
^
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:155:1: error: previous declaration of ‘double pow(double, double)’
__MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
user.cpp: In function ‘int main()’:
user.cpp:23:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long int j=0;j<temp.length();j++)if(temp[j]=='1')
^
user.cpp:26:16: error: overloaded function with no contextual type information
pow=abs(j-temp.length()+1);
^
user.cpp:27:25: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
sol=sol+(1<<pow);
^
user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kbiti.in","r",stdin);
^
user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kbiti.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !