Borderou de evaluare (job #1582079)
Utilizator | Data | 27 ianuarie 2016 17:27:11 | |
---|---|---|---|
Problema | Sarac Sau Rege | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:17: error: ‘int log’ redeclared as different kind of symbol
int start, stop,log;
^
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:110:1: error: previous declaration of ‘double log(double)’
__MATHCALL (log,, (_Mdouble_ __x));
^
user.cpp: In function ‘void build()’:
user.cpp:11:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
int nod = log-1;
^
user.cpp: In function ‘void query(int, int)’:
user.cpp:17:15: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
st = st-1+log;
^
user.cpp:18:15: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
dr = dr-1+log;
^
user.cpp: In function ‘int main()’:
user.cpp:30:9: error: overloaded function with no contextual type information
log = 1;
^
user.cpp:31:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
while(log <= n) log=(log<<1);
^
user.cpp:31:31: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<<’
while(log <= n) log=(log<<1);
^
user.cpp:34:28: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
scanf("%d", &arb[i+log-1]);
^
user.cpp:27:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.in", "r", stdin);
^
user.cpp:28:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.out", "w", stdout);
^
user.cpp:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:39:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !