Pagini recente » Borderou de evaluare (job #2388683) | Borderou de evaluare (job #1095235) | Borderou de evaluare (job #2573460) | Borderou de evaluare (job #337130) | Borderou de evaluare (job #1244239)
Borderou de evaluare (job #1244239)
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 | 560kb | OK | 10 |
2 | 0ms | 612kb | OK | 10 |
3 | 0ms | 624kb | OK | 10 |
4 | 196ms | 5236kb | OK | 10 |
5 | 204ms | 5356kb | OK | 10 |
6 | 208ms | 5280kb | OK | 10 |
7 | Depăşit | 5140kb | Time limit exceeded. | 0 |
8 | 344ms | 5156kb | OK | 10 |
9 | 348ms | 5380kb | OK | 10 |
10 | Depăşit | 5020kb | Time limit exceeded. | 0 |
Punctaj total | 80 |