Pagini recente » Borderou de evaluare (job #608570) | Borderou de evaluare (job #84422) | Borderou de evaluare (job #2037751) | Borderou de evaluare (job #869449) | Borderou de evaluare (job #2261619)
Borderou de evaluare (job #2261619)
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:58:15: warning: statement has no effect [-Wunused-value]
cout.fixed;
^
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:51:5: note: in expansion of macro 'FO'
FO(aranjare3);
^~
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:51:5: note: in expansion of macro 'FO'
FO(aranjare3);
^~
main.cpp:53:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input", "r", stdin);
^
main.cpp:62:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:66:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 131kb | final stack is not sorted | 0 |
2 | 4ms | 131kb | final stack is not sorted | 0 |
3 | 3ms | 131kb | final stack is not sorted | 0 |
4 | 5ms | 131kb | final stack is not sorted | 0 |
5 | 2ms | 131kb | final stack is not sorted | 0 |
6 | 3ms | 131kb | final stack is not sorted | 0 |
7 | 5ms | 131kb | final stack is not sorted | 0 |
8 | 3ms | 131kb | final stack is not sorted | 0 |
9 | 4ms | 131kb | final stack is not sorted | 0 |
10 | 4ms | 131kb | final stack is not sorted | 0 |
11 | 4ms | 131kb | final stack is not sorted | 0 |
12 | 5ms | 131kb | final stack is not sorted | 0 |
13 | 5ms | 131kb | final stack is not sorted | 0 |
14 | 3ms | 131kb | final stack is not sorted | 0 |
15 | 4ms | 131kb | final stack is not sorted | 0 |
16 | 2ms | 131kb | final stack is not sorted | 0 |
17 | 2ms | 131kb | final stack is not sorted | 0 |
18 | 3ms | 131kb | final stack is not sorted | 0 |
19 | 5ms | 131kb | final stack is not sorted | 0 |
20 | 5ms | 131kb | final stack is not sorted | 0 |
Punctaj total | 0 |