Pagini recente » Borderou de evaluare (job #3222922) | Borderou de evaluare (job #299384) | Borderou de evaluare (job #2453401) | Borderou de evaluare (job #2297633) | Borderou de evaluare (job #2703389)
Borderou de evaluare (job #2703389)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &n, &m);
^
main.cpp:29:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &Heights[i]);
^
main.cpp:34:26: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &q);
^
main.cpp:39:80: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d%d%d", &startLine, &startColumn, &endLine, &endColumn);
^
main.cpp: In function 'int BinarySearch(int*, int, int, int)':
main.cpp:12:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
int ans;
^~~
main.cpp: In function 'int main()':
main.cpp:40:77: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
int pos1 = BinarySearch(Heights, startLine, endLine, startColumn) - 1;
^
main.cpp:41:75: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
int pos2 = BinarySearch(Heights, startLine, endLine, endColumn) - 1;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Corect | 5 |
3 | 3ms | 131kb | Corect | 5 |
4 | 3ms | 131kb | Corect | 5 |
5 | 10ms | 393kb | Incorect | 0 |
6 | 22ms | 786kb | Incorect | 0 |
7 | 35ms | 1048kb | Corect | 4 |
8 | 45ms | 1310kb | Corect | 4 |
9 | 8ms | 262kb | Corect | 4 |
10 | 10ms | 131kb | Corect | 4 |
11 | 8ms | 131kb | Corect | 4 |
12 | 8ms | 131kb | Corect | 4 |
13 | 184ms | 2097kb | Corect | 6 |
14 | 194ms | 2228kb | Corect | 6 |
15 | 207ms | 2228kb | Corect | 6 |
16 | 212ms | 2359kb | Corect | 6 |
17 | 213ms | 2359kb | Corect | 6 |
18 | 206ms | 2359kb | Corect | 6 |
19 | 208ms | 2359kb | Corect | 7 |
Punctaj total | 92 |