Pagini recente » Borderou de evaluare (job #3159593) | Borderou de evaluare (job #2687244) | Borderou de evaluare (job #2389016) | Borderou de evaluare (job #1196011) | Borderou de evaluare (job #2261667)
Borderou de evaluare (job #2261667)
Raport evaluator
Compilare:
main.cpp: In function 'int binarySearch(std::vector<int>&, int)':
main.cpp:36:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(best + (1<<step) < v.size() && v[best + (1<<step)] <= value) best += (1<<step);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:98:15: warning: statement has no effect [-Wunused-value]
cout.fixed;
^
main.cpp: In function 'void solve()':
main.cpp:55:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:59:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", v + i);
^
main.cpp: In function 'int main()':
main.cpp:7:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define FO(x) {freopen(#x".in","r",stdin);freopen(#x".out","w",stdout);}
^
main.cpp:91:5: note: in expansion of macro 'FO'
FO(antivirus);
^~
main.cpp:7:71: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define FO(x) {freopen(#x".in","r",stdin);freopen(#x".out","w",stdout);}
^
main.cpp:91:5: note: in expansion of macro 'FO'
FO(antivirus);
^~
main.cpp:101:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 44ms | 14548kb | OK | 10 |
2 | 30ms | 15597kb | OK | 10 |
3 | 26ms | 16384kb | OK | 10 |
4 | 36ms | 16384kb | OK | 10 |
5 | 36ms | 16384kb | OK | 10 |
6 | 87ms | 16384kb | OK | 10 |
7 | 88ms | 16384kb | OK | 10 |
8 | 89ms | 16384kb | OK | 10 |
9 | 89ms | 16384kb | OK | 10 |
10 | 89ms | 16384kb | OK | 10 |
Punctaj total | 100 |