Pagini recente » Borderou de evaluare (job #1185473) | Borderou de evaluare (job #3145877) | Borderou de evaluare (job #261587) | Borderou de evaluare (job #2752487) | Borderou de evaluare (job #2281852)
Borderou de evaluare (job #2281852)
Raport evaluator
Compilare:
main.cpp: In function 'int binarySearch(std::vector<int>&, int)':
main.cpp:71: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:195:15: warning: statement has no effect [-Wunused-value]
cout.fixed;
^
main.cpp: In function 'void solve()':
main.cpp:109: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:117: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:13: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:181:5: note: in expansion of macro 'FO'
FO(antivirus);
^~
main.cpp:13: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:181:5: note: in expansion of macro 'FO'
FO(antivirus);
^~
main.cpp:201: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 | 30ms | 16384kb | OK | 10 |
2 | 31ms | 16384kb | OK | 10 |
3 | 30ms | 16384kb | OK | 10 |
4 | 42ms | 16384kb | OK | 10 |
5 | 45ms | 16384kb | OK | 10 |
6 | 104ms | 16384kb | OK | 10 |
7 | 100ms | 16384kb | OK | 10 |
8 | 104ms | 16384kb | OK | 10 |
9 | 100ms | 16384kb | OK | 10 |
10 | 104ms | 16384kb | OK | 10 |
Punctaj total | 100 |