Borderou de evaluare (job #1468191)

Utilizator vlady1997Vlad Bucur vlady1997 Data 5 august 2015 13:45:23
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&a,&b); A[1][1]=1; A[1][2]=0; A[2][1]=0; A[2][2]=1; ^ user.cpp:28:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (a<3) {printf("%d\n",1%b); return 0;} ^ user.cpp:39:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",sol%b); ^ user.cpp:24:18: warning: unused variable ‘n’ [-Wunused-variable] int a, k, p, n, i, sol; ^ user.cpp:25:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fibo.in","r",stdin); ^ user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fibo.out","w",stdout); ^ user.cpp:27:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); A[1][1]=1; A[1][2]=0; A[2][1]=0; A[2][2]=1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbKilled by signal 8(SIGFPE).0
20ms188kbKilled by signal 8(SIGFPE).0
30ms184kbKilled by signal 8(SIGFPE).0
40ms184kbKilled by signal 8(SIGFPE).0
50ms188kbKilled by signal 8(SIGFPE).0
60ms188kbKilled by signal 8(SIGFPE).0
70ms184kbKilled by signal 8(SIGFPE).0
80ms188kbKilled by signal 8(SIGFPE).0
90ms184kbKilled by signal 8(SIGFPE).0
100ms184kbKilled by signal 8(SIGFPE).0
110ms188kbKilled by signal 8(SIGFPE).0
120ms188kbKilled by signal 8(SIGFPE).0
130ms184kbKilled by signal 8(SIGFPE).0
140ms184kbKilled by signal 8(SIGFPE).0
150ms188kbKilled by signal 8(SIGFPE).0
160ms188kbKilled by signal 8(SIGFPE).0
170ms188kbKilled by signal 8(SIGFPE).0
180ms192kbKilled by signal 8(SIGFPE).0
190ms184kbKilled by signal 8(SIGFPE).0
200ms188kbKilled by signal 8(SIGFPE).0
Punctaj total0

Ceva nu functioneaza?