Borderou de evaluare (job #2138097)
Utilizator | Data | 21 februarie 2018 12:47:28 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int factorial(std::vector<int>&, int)’:
user.cpp:31:20: error: ‘pow’ is not a member of ‘std’
exponent = (int) std::pow(5, current);
^
user.cpp:31:20: note: suggested alternative:
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from user.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:153:1: note: ‘pow’
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
user.cpp: In function ‘int main()’:
user.cpp:44:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &P);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !