Borderou de evaluare (job #1244239)

Utilizator sebinechitasebi nechita sebinechita Data 16 octombrie 2014 22:34:10
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

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
10ms560kbOK10
20ms612kbOK10
30ms624kbOK10
4196ms5236kbOK10
5204ms5356kbOK10
6208ms5280kbOK10
7Depăşit5140kbTime limit exceeded.0
8344ms5156kbOK10
9348ms5380kbOK10
10Depăşit5020kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?