Borderou de evaluare (job #1697524)

Utilizator raddudjPogonariu Radu raddudj Data 2 mai 2016 12:52:45
Problema Spion Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 35

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:47:100: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",1LL*(1LL*fact[n]*FastPow(fact[rez],MOD-2)%MOD)*FastPow(fact[n-rez],MOD - 2) % MOD); ^ user.cpp:35:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("spion.in","r",stdin); ^ user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("spion.out","w",stdout); ^ user.cpp:37:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&op); ^ user.cpp:38:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc8GJwXx.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK5
20ms344kbKilled by signal 6(SIGABRT).0
30ms340kbKilled by signal 6(SIGABRT).0
40ms340kbKilled by signal 6(SIGABRT).0
50ms268kbOK5
60ms272kbOK5
70ms276kbOK5
80ms284kbOK5
90ms288kbOK5
100ms288kbOK5
110ms340kbKilled by signal 6(SIGABRT).0
120ms344kbKilled by signal 6(SIGABRT).0
130ms340kbKilled by signal 6(SIGABRT).0
140ms340kbKilled by signal 6(SIGABRT).0
150ms336kbKilled by signal 6(SIGABRT).0
160ms340kbKilled by signal 6(SIGABRT).0
170ms340kbKilled by signal 6(SIGABRT).0
180ms344kbKilled by signal 6(SIGABRT).0
190ms344kbKilled by signal 6(SIGABRT).0
200ms340kbKilled by signal 6(SIGABRT).0
Punctaj total35

Ceva nu functioneaza?