Borderou de evaluare (job #2443152)

Utilizator florin_salamFlorin Salam florin_salam Data 26 iulie 2019 18:23:03
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'long long int Query(int)': main.cpp:14:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1;i <= n;++i) ~~^~~~ main.cpp:17:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (cnt.size() > sz) ~~~~~~~~~~~^~~~ main.cpp: In function 'int main()': main.cpp:34:40: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'unsigned int*' [-Wformat=] fscanf(fin, "%ld%ld%ld", &n, &l, &u); ^ main.cpp:34:40: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'unsigned int*' [-Wformat=] main.cpp:34:40: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'unsigned int*' [-Wformat=] main.cpp:35:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1;i <= n;++i) ~~^~~~ main.cpp:36:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'unsigned int*' [-Wformat=] fscanf(fin, "%ld", &v[i]); ^ main.cpp:37:51: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=] fprintf(fout, "%ld\n", Query(u) - Query(l - 1)); ^ main.cpp:34:41: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld%ld%ld", &n, &l, &u); ^ main.cpp:36:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%ld", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbIncorect0
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
Punctaj total0

Ceva nu functioneaza?