Borderou de evaluare (job #1244323)

Utilizator sebinechitasebi nechita sebinechita Data 17 octombrie 2014 08:18:34
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int rez(int, int, int, int)’: user.cpp:65: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:65: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:65: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:65: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:65: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:65: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:65: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:65: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:20: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:29: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:41: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:44: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
10ms404kbOK10
20ms432kbOK10
30ms440kbOK10
4196ms4976kbOK10
5204ms5088kbOK10
6216ms5020kbOK10
7Depăşit4896kbTime limit exceeded.0
8Depăşit4900kbTime limit exceeded.0
9Depăşit5112kbTime limit exceeded.0
10Depăşit4776kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?