Borderou de evaluare (job #1252844)

Utilizator Dddarius95Darius-Florentin Neatu Dddarius95 Data 31 octombrie 2014 13:37:06
Problema ClassicTask Status done
Runda Arhiva Monthly Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:19:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d %d %d", &a, &b, &c); ^ user.c:19:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c:19:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long int *’ [-Wformat=] user.c:28:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("rezultat = %d\n", rezultat); ^ user.c:15:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("classictask.in", "r", stdin); ^ user.c:16:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("classictask.out", "w", stdout); ^ user.c:19:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a, &b, &c); ^ user.c:7:15: warning: ‘rezultat’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (b % 2==1) aux=(aux+a) % c; ^ user.c:18:25: note: ‘rezultat’ was declared here long long a, b, c, rezultat; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms260kbIncorect00
20ms260kbIncorect0
30ms256kbIncorect0
40ms260kbIncorect0
50ms260kbIncorect0
60ms260kbIncorect0
70ms252kbIncorect0
80ms256kbIncorect0
90ms256kbIncorect0
100ms256kbIncorect0
Punctaj total0

Ceva nu functioneaza?