Borderou de evaluare (job #1269100)

Utilizator otnielMercea Otniel otniel Data 21 noiembrie 2014 21:12:58
Problema Suma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:57: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g,"%ld",(((n%p)*((n+1)%p)*((n-1)%p))/3)%p); ^ user.cpp:17:80: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g,"%ld",((((n%p)*((n-1)%p)*((n-2)%p))%p)/3+((n%p)*((n-1)%p)))%p); ^ user.cpp:10:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms336kbKilled by signal 11(SIGSEGV).0
20ms340kbKilled by signal 11(SIGSEGV).0
30ms340kbKilled by signal 11(SIGSEGV).0
40ms344kbKilled by signal 11(SIGSEGV).0
50ms340kbKilled by signal 11(SIGSEGV).0
60ms340kbKilled by signal 11(SIGSEGV).0
70ms340kbKilled by signal 11(SIGSEGV).0
80ms336kbKilled by signal 11(SIGSEGV).0
90ms340kbKilled by signal 11(SIGSEGV).0
100ms336kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?