Borderou de evaluare (job #1230042)
Utilizator | Data | 18 septembrie 2014 12:18:04 | |
---|---|---|---|
Problema | Divisorgraph | Status | done |
Runda | Algoritmiada 2014, Runda Finala, Clasele 9 - 10 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:11: error: ‘int pow [20]’ redeclared as different kind of symbol
int pow[20];
^
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:105:18: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
pow[nrp] = (noduri[1].grad / (noduri[1].grad - noduri[j].grad)) - 1;
^
user.cpp:106:35: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
gradt = gradt * (pow[nrp] + 1);
^
user.cpp:109:30: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
for(j = 1; j <= pow[nrp]; ++ j)
^
user.cpp:112:40: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
gradnou = lista[k] / (pow[nrp] + 1) * (j + 1);
^
user.cpp:119:42: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
rez = (rez * logput(prime[j], pow[j])) % 1000000007;
^
user.cpp:120:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long long int*’ [-Wformat=]
printf("%lld", &rez);
^
user.cpp:75: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:76: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:79:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:82:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &v, &e);
^
user.cpp:94:28: 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 !