Pagini recente » Borderou de evaluare (job #2972151) | Borderou de evaluare (job #3153162) | Borderou de evaluare (job #18413) | Borderou de evaluare (job #1597805) | Borderou de evaluare (job #2443152)
Borderou de evaluare (job #2443152)
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 |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 0 |