Borderou de evaluare (job #1239749)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 9 octombrie 2014 18:48:44
Problema Light2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &n, &k); ^ user.cpp:34:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", Ans); ^ user.cpp:25:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("light2.in", "r", stdin); ^ user.cpp:26:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("light2.out", "w", stdout); ^ user.cpp:27:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.cpp:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &d[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms260kbOK10
30ms264kbOK10
40ms264kbOK10
50ms256kbIncorect0
60ms264kbIncorect0
7120ms260kbIncorect0
880ms264kbIncorect0
9748ms264kbIncorect0
101052ms260kbIncorect0
Punctaj total40

Ceva nu functioneaza?