Pagini recente » Borderou de evaluare (job #2680359) | Borderou de evaluare (job #1684093) | Borderou de evaluare (job #1211901) | Borderou de evaluare (job #1790186) | Borderou de evaluare (job #1244222)
Borderou de evaluare (job #1244222)
Raport evaluator
Compilare:
user.cpp: In function ‘int rez(int, int, int, int)’:
user.cpp:52:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:54: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:97: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:110: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:157: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:170: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:232: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp:52:245: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return max(max(a[x1][y1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y1][lg[x2-x1+1]][lg[y2-y1+1]]),max(a[x1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]], a[x2-(1<<lg[x2-x1+1])+1][y2-(1<<lg[y2-y1+1])+1][lg[x2-x1+1]][lg[y2-y1+1]]));
^
user.cpp: In function ‘int getInt()’:
user.cpp:21:37: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf, maxb, 1, fin);
^
user.cpp:30:37: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf, maxb, 1, fin);
^
user.cpp: In function ‘char getChar()’:
user.cpp:42:44: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf, maxb, 1, fin), ptr=0;
^
user.cpp:45:44: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf, maxb, 1, fin), ptr=0;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 564kb | OK | 10 |
2 | 0ms | 616kb | OK | 10 |
3 | 0ms | 624kb | OK | 10 |
4 | 196ms | 5240kb | OK | 10 |
5 | 204ms | 5356kb | OK | 10 |
6 | 208ms | 5272kb | OK | 10 |
7 | Depăşit | 5140kb | Time limit exceeded. | 0 |
8 | Depăşit | 5160kb | Time limit exceeded. | 0 |
9 | 340ms | 5380kb | OK | 10 |
10 | Depăşit | 5020kb | Time limit exceeded. | 0 |
Punctaj total | 70 |