Borderou de evaluare (job #2303780)

Utilizator Constantin.Dragancea Constantin Constantin. Data 16 decembrie 2018 21:09:51
Problema Rk Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:13:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=] scanf("%dll", &n); ^ main.cpp:14:47: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=] for (int i=1; i<=n; i++) scanf("%dll", a+i); ^ main.cpp:22:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=] scanf("%dll", &q); ^ main.cpp:27:33: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type {aka long int}' [-Wformat=] printf("%d\n", (hi - lo)); ^ main.cpp:11:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rk.in", "r", stdin); ^ main.cpp:12:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rk.out", "w", stdout); ^ main.cpp:13:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%dll", &n); ^ main.cpp:14:48: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for (int i=1; i<=n; i++) scanf("%dll", a+i); ^ main.cpp:22:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%dll", &q); ^ main.cpp:24:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &r, &k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
27ms262kbIncorect0
3100ms3801kbIncorect0
4403ms12636kbTime limit exceeded0
5197ms20496kbMemory limit exceeded0
6113ms3801kbIncorect0
7400ms13946kbTime limit exceeded0
8180ms20496kbMemory limit exceeded0
9191ms20496kbMemory limit exceeded0
10214ms20496kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?