Borderou de evaluare (job #1451081)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 15 iunie 2015 23:16:05
Problema Zero 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:26: error: ‘long long int exp’ redeclared as different kind of symbol ll T , n , b , d , ans , exp; ^ 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:101:1: error: previous declaration of ‘double exp(double)’ __MATHCALL (exp,, (_Mdouble_ __x)); ^ user.cpp: In function ‘int main()’: user.cpp:38:26: error: overloaded function with no contextual type information for (exp = 0; b % d == 0; exp++) ^ user.cpp:38:46: error: no post-increment operator for type for (exp = 0; b % d == 0; exp++) ^ user.cpp:41:48: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ ans = min(ans , solve(n , d) / exp); ^ user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zero2.in","r",stdin); ^ user.cpp:27:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zero2.out","w",stdout); ^ user.cpp:31:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld", &n, &b); ^

Ceva nu functioneaza?