Borderou de evaluare (job #1462851)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 19 iulie 2015 10:45:07
Problema Ksecv3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] if(s%k!=0) printf("%ld\n",-1); ^ user.cpp:29:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] else if(dr>s) {printf("%ld\n",-1); i=n+1; ok=1;} ^ user.cpp:31:60: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] if(!ok) for(i=1;i<=a[0];++i) printf("%ld ",a[i]); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv3.out","w",stdout); ^ user.cpp:11:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^ user.cpp:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v); ^ user.cpp:23:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^ user.cpp:26:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms244kbKilled by signal 11(SIGSEGV).0
30ms244kbKilled by signal 11(SIGSEGV).0
40ms268kbOK10
50ms248kbKilled by signal 11(SIGSEGV).0
64ms272kbOK10
720ms248kbKilled by signal 11(SIGSEGV).0
860msDepăşitMemory limit exceeded.0
936ms268kbIncorect0
1016ms268kbOK10
Punctaj total40

Ceva nu functioneaza?