Pagini recente » Borderou de evaluare (job #2186813) | Borderou de evaluare (job #2224487) | Borderou de evaluare (job #2103759) | Borderou de evaluare (job #837105) | Borderou de evaluare (job #1654074)
Borderou de evaluare (job #1654074)
Raport evaluator
Compilare:
user.cpp: In function ‘int find_dad(int)’:
user.cpp:25:32: warning: narrowing conversion of ‘temp’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({1,temp,next,id});
^
user.cpp:25:32: warning: narrowing conversion of ‘next’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
user.cpp: In function ‘void join(int, int)’:
user.cpp:41:32: warning: narrowing conversion of ‘dad2’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({1,dad2,dad2,id});
^
user.cpp:41:32: warning: narrowing conversion of ‘dad2’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
user.cpp:43:39: warning: narrowing conversion of ‘dad1’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({3,dad1,zeros[dad1],id});
^
user.cpp:48:36: warning: narrowing conversion of ‘dad1’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({1,dad1,dad1,id});
^
user.cpp:48:36: warning: narrowing conversion of ‘dad1’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
user.cpp:50:43: warning: narrowing conversion of ‘dad2’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({3,dad2,zeros[dad2],id});
^
user.cpp:54:36: warning: narrowing conversion of ‘dad2’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({1,dad2,dad2,id});
^
user.cpp:54:36: warning: narrowing conversion of ‘dad2’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
user.cpp:56:43: warning: narrowing conversion of ‘dad1’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({3,dad1,zeros[dad1],id});
^
user.cpp:58:44: warning: narrowing conversion of ‘dad1’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
s.push({2,dad1,height[dad1],id});
^
user.cpp: In function ‘int main()’:
user.cpp:80:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=]
scanf("%d%d%d",&n,&m,&colors);
^
user.cpp:80:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=]
user.cpp:83:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=]
scanf("%d",&cells[i][j]);
^
user.cpp:94:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(q=0;q<places[0].size();q++){
^
user.cpp:108:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(q=0;q<places[k].size();q++){
^
user.cpp:111:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(check(i,j-1)==1&&cells[i][j-1]==0||cells[i][j-1]==k)
^
user.cpp:113:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(check(i,j+1)==1&&cells[i][j+1]==0||cells[i][j+1]==k)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 992kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |