Borderou de evaluare (job #1913981)

Utilizator PaulCbnCiobanu Paul PaulCbn Data 8 martie 2017 14:59:06
Problema 2sah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:11:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d",&Q,&N,&K); ^ user.cpp:11:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:11:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp: In function ‘int main()’: user.cpp:79:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld\n",rez1(K-1)); ^ user.cpp:94:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",s); ^ user.cpp: In function ‘void citire()’: user.cpp:11:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&Q,&N,&K); ^ user.cpp: In function ‘long long int rez1(long long int)’: user.cpp:53:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘mat rez2(long long int)’: user.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:75:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2sah.in","r",stdin); ^ user.cpp:76:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("2sah.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbCorect!2
20ms436kbCorect!2
30ms444kbCorect!2
40ms440kbCorect!2
50ms440kbCorect!2
60ms444kbCorect!2
70ms436kbCorect!2
80ms436kbCorect!2
90ms444kbCorect!2
100ms436kbCorect!8
110ms440kbCorect!8
120ms436kbCorect!8
130ms444kbCorect!8
140ms448kbCorect!8
150ms452kbCorect!8
160ms452kbCorect!8
170ms456kbCorect!8
180ms452kbCorect!8
190ms456kbCorect!8
200ms444kbCorect!2
Punctaj total100

Ceva nu functioneaza?