Borderou de evaluare (job #2089167)

Utilizator Anamaria121421Balacescu Anamaria Anamaria121421 Data 16 decembrie 2017 11:20:40
Problema Lant Aditiv Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:26:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", k); ^ user.cpp:28:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d ", v[i]); ^ user.cpp:21:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lantaditiv.in", "r", stdin); ^ user.cpp:22:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lantaditiv.out", "w", stdout); ^ user.cpp:23:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbRaspuns gresit!0
20ms444kbRaspuns gresit!0
30ms448kbRaspuns gresit!0
40ms452kbRaspuns gresit!0
58ms680kbRaspuns gresit!0
620ms1152kbRaspuns gresit!0
70ms444kbRaspuns gresit!0
80ms444kbRaspuns gresit!0
90ms448kbRaspuns gresit!0
100ms444kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?