Pagini recente » Borderou de evaluare (job #1400394) | Borderou de evaluare (job #1102534) | Borderou de evaluare (job #2553014) | Borderou de evaluare (job #1843442) | Borderou de evaluare (job #2676867)
Borderou de evaluare (job #2676867)
Raport evaluator
Compilare:
main.cpp: In function 'void buildbst()':
main.cpp:24:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(sum + (1 << i) <= n - 1)
^~~~~
main.cpp:25:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
sum += (1 << i++); i = 1;
^
main.cpp: In function 'int main()':
main.cpp:70:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.in", "r", stdin);
^
main.cpp:71:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.out", "w", stdout);
^
main.cpp:72:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:76:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
pos[x] = i;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 41ms | 917kb | OK | 10 |
3 | 68ms | 1572kb | OK | 10 |
4 | 69ms | 1572kb | OK | 10 |
5 | 69ms | 1572kb | OK | 10 |
6 | 69ms | 1572kb | OK | 10 |
7 | 143ms | 2883kb | OK | 10 |
8 | 134ms | 2883kb | OK | 10 |
9 | 138ms | 3014kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |