Pagini recente » Borderou de evaluare (job #1193025) | Borderou de evaluare (job #25495) | Borderou de evaluare (job #1140205) | Borderou de evaluare (job #1832881) | Borderou de evaluare (job #2638647)
Borderou de evaluare (job #2638647)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<stdio.h>
^~~~~~
main.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<string.h>
^~~~~~
main.cpp: In function 'void calc_val()':
main.cpp:3:127: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
int n,a[101][101],m[405],r,s,x,y,v[101][2],i,j,k;void calc_val(){for(i=1;i<=100;i++)for(j=1;j<=100;j++){memset(m,0,sizeof(m));for(k=1;k<j;k++)m[a[i][k]^a[i][j-k]]=1;for(k=1;k<i;k++)m[a[k][j]^a[i-k][j]]=1;for(k=1;k<j-1;k++)m[a[i][k]^a[i][j-k-1]]=1;for(k=1;k<i-1;k++)m[a[k][j]^a[i-k-1][j]]=1;if(i>2&&j>2)m[a[i-2][j-2]]=1;for(k=0;m[k];k++);a[i][j]=k;}}main(){freopen("joc2.in","r",stdin);freopen("joc2.out","w",stdout);calc_val();scanf("%d",&n);for(i=1;i<=n;i++){scanf("%d %d",&v[i][0],&v[i][1]); s=s^a[v[i][0]][v[i][1]];}for(i=1;i<=n;i++){x=s^a[v[i][0]][v[i][1]];for(k=1;k<v[i][1];k++)if((x^a[v[i][0]][k]^a[v[i][0]][v[i][1]-k])==0)r++;for(k=1;k<v[i][0];k++)if((x^a[k][v[i][1]]^a[v[i][0]-k][v[i][1]])==0)r++;for(k=1;k<v[i][1]-1;k++)if((x^a[v[i][0]][k]^a[v[i][0]][v[i][1]-k-1])==0)r++;for(k=1;k<v[i][0]-1;k++)if((x^a[k][v[i][1]]^a[v[i][0]-k-1][v[i][1]])==0)r++;if(v[i][0]>2&&v[i][1]>2)if((x^a[v[i][0]-2][v[i][1]-2])==0) r++;}printf("%d",r);fclose(stdout);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:4:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
main.cpp:4:120: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
main.cpp:5:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
main.cpp: At global scope:
main.cpp:5:99: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main.cpp: In function 'int main()':
main.cpp:7:122: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
main.cpp:8:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
main.cpp:8:90: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
main.cpp:9:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
main.cpp:6:1: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:6:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:6:58: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:6:109: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 13ms | 131kb | OK | 5 |
2 | 13ms | 131kb | OK | 5 |
3 | 13ms | 131kb | OK | 5 |
4 | 13ms | 131kb | OK | 5 |
5 | 13ms | 131kb | OK | 5 |
6 | 13ms | 131kb | OK | 5 |
7 | 13ms | 131kb | OK | 5 |
8 | 13ms | 131kb | OK | 5 |
9 | 13ms | 131kb | OK | 5 |
10 | 13ms | 131kb | OK | 5 |
11 | 13ms | 131kb | OK | 5 |
12 | 13ms | 131kb | OK | 5 |
13 | 13ms | 131kb | OK | 5 |
14 | 13ms | 131kb | OK | 5 |
15 | 13ms | 131kb | OK | 5 |
16 | 13ms | 131kb | OK | 5 |
17 | 13ms | 131kb | OK | 5 |
18 | 13ms | 131kb | OK | 5 |
19 | 13ms | 131kb | OK | 5 |
20 | 13ms | 131kb | OK | 5 |
Punctaj total | 100 |