Borderou de evaluare (job #1261264)

Utilizator gabimoiseMoise Gabriel gabimoise Data 12 noiembrie 2014 08:46:31
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:17: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:28:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld%ld",&a,&b,&c); ^ user.cpp:28:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:28:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:41:10: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (d!=0) if (c%d==0) printf("%d %d\n",x,y); ^ user.cpp:23:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.in","r",stdin); ^ user.cpp:24:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.out","w",stdout); ^ user.cpp:25:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:28:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld",&a,&b,&c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms428kbRaspuns Corect100
20ms420kbKilled by signal 8(SIGFPE).0
30ms432kbRaspuns Corect10
40ms432kbRaspuns Corect1010
50ms436kbRaspuns Corect1010
60ms436kbRaspuns Corect1010
70ms432kbRaspuns Corect1010
80ms432kbRaspuns Corect1010
90ms436kbRaspuns Corect1020
100ms428kbRaspuns Corect10
Punctaj total70

Ceva nu functioneaza?