Borderou de evaluare (job #1282511)
Utilizator | Data | 4 decembrie 2014 12:33:19 | |
---|---|---|---|
Problema | Divisorgraph | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:44: error: ‘int exp [30]’ redeclared as different kind of symbol
int in[5050], out[5050], N, M, T, K, exp[30], rez, x, y;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:101:1: error: previous declaration of ‘double exp(double)’
__MATHCALL (exp,, (_Mdouble_ __x));
^
user.cpp: In function ‘int main()’:
user.cpp:40:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
exp[K] = (in[i] + 1)/(N - in[i]-1);
^
user.cpp:44:22: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
sort(exp,exp+K);
^
user.cpp:46:49: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
rez = (1LL* rez * pow(p[K-1-i],exp[i])) % MOD;
^
user.cpp:22:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divisorgraph.in","r",stdin);
^
user.cpp:23:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divisorgraph.out","w",stdout);
^
user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:26:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
^
user.cpp:34:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !