Borderou de evaluare (job #1336365)

Utilizator handsonthewheelSandel Georgel handsonthewheel Data 7 februarie 2015 17:22:23
Problema Cmmmc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void sol(int)’: user.cpp:26:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;i<sizeof(P)&&1LL*P[i]*P[i]<=n;i++){ ^ user.cpp: In function ‘void solve(long long unsigned int)’: user.cpp:40:20: warning: overflow in implicit constant conversion [-Woverflow] int SumMin=10000000000; ^ user.cpp:54:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (d+n/d<SumMin){ ^ user.cpp: In function ‘int main()’: user.cpp:76:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf ("%d", &x); ^ user.cpp:69:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cmmmc.in", "r", stdin); ^ user.cpp:70:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cmmmc.out", "w", stdout); ^ user.cpp:74:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ user.cpp:76:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x); ^ user.cpp: In function ‘int cmmmdc(int, int)’: user.cpp:13:8: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] return r;} ^ user.cpp: In function ‘void solve(long long unsigned int)’: user.cpp:52:22: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (p/cmmmdc(d,n/d)==n){ ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms312kbKilled by signal 8(SIGFPE).0
20ms312kbKilled by signal 8(SIGFPE).0
30ms316kbOK!10
4Depăşit308kbTime limit exceeded.0
5Depăşit308kbTime limit exceeded.0
60ms308kbKilled by signal 8(SIGFPE).0
70ms312kbKilled by signal 8(SIGFPE).0
80ms312kbOK!10
912ms316kbOK!10
1012ms312kbOK!10
Punctaj total40

Ceva nu functioneaza?