Borderou de evaluare (job #1208554)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 16 iulie 2014 00:58:18
Problema Fractal Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d",&n,&k,&m);nr_loc=k; ^ user.cpp:9:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:9:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:16:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&x); ^ user.cpp:21:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&l);s+=l;gasit=0; ^ user.cpp:26:47: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for(j=nr_loc+1;j<=x;j++) scanf("%d",&l); ^ user.cpp:32:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d\n",s,m/n); ^ user.cpp:32:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:35:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d\n",s,(m+maxim)/n); ^ user.cpp:35:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:36:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] else printf("%d %d\n",s,(m+maxim)/n+1);} ^ user.cpp:36:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("turism.in","r",stdin); ^ user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("turism.out","w",stdout); ^ user.cpp:9:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&k,&m);nr_loc=k; ^ user.cpp:16:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:21:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&l);s+=l;gasit=0; ^ user.cpp:26:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(j=nr_loc+1;j<=x;j++) scanf("%d",&l); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms196kbKilled by signal 8(SIGFPE).0
20ms200kbKilled by signal 8(SIGFPE).0
30ms196kbKilled by signal 8(SIGFPE).0
40ms192kbKilled by signal 8(SIGFPE).0
50ms196kbKilled by signal 8(SIGFPE).0
60ms192kbKilled by signal 8(SIGFPE).0
70ms196kbKilled by signal 8(SIGFPE).0
80ms192kbKilled by signal 8(SIGFPE).0
90ms196kbKilled by signal 8(SIGFPE).0
100ms196kbKilled by signal 8(SIGFPE).0
Punctaj total0

Ceva nu functioneaza?