Borderou de evaluare (job #2182775)

Utilizator mateicosCostescu Matei mateicos Data 22 martie 2018 17:11:16
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:46:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &n, &m); ^ user.cpp:48:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &v[i]); ^ user.cpp:65:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld\n", bin(a)); ^ user.cpp:45:9: warning: unused variable ‘q’ [-Wunused-variable] int q, m, i, p, a, b; ^ user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.in", "r", stdin); ^ user.cpp:44:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.out", "w", stdout); ^ user.cpp:46:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:48:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ user.cpp:53:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); ^ user.cpp:55:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ user.cpp:60:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ user.cpp:64:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1328kbIncorect0
20ms1336kbIncorect0
312ms1408kbIncorect0
444ms1628kbIncorect0
5104ms1860kbIncorect0
6176ms2360kbIncorect0
7172ms2640kbIncorect0
8260ms2804kbIncorect0
9260ms2904kbIncorect0
10300ms2876kbIncorect0
Punctaj total0

Ceva nu functioneaza?