Pagini recente » Borderou de evaluare (job #1987176) | Borderou de evaluare (job #3161412) | Borderou de evaluare (job #144548) | Borderou de evaluare (job #149661) | Borderou de evaluare (job #2604314)
Borderou de evaluare (job #2604314)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<cstdio>
^~~~~~
main.cpp:2:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){freopen("sah.in","r",stdin);freopen("sah.out","w",stdout);int n,i,j;scanf("%d",&n);for(i=0;i<n;++i){for(j=0;j<n;++j)printf("%d ",((i>>1)<<1)^(j<(i>>1)?0:1));printf("\n");}}
^
main.cpp: In function 'int main()':
main.cpp:2:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("sah.in","r",stdin);freopen("sah.out","w",stdout);int n,i,j;scanf("%d",&n);for(i=0;i<n;++i){for(j=0;j<n;++j)printf("%d ",((i>>1)<<1)^(j<(i>>1)?0:1));printf("\n");}}
^
main.cpp:2:65: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("sah.in","r",stdin);freopen("sah.out","w",stdout);int n,i,j;scanf("%d",&n);for(i=0;i<n;++i){for(j=0;j<n;++j)printf("%d ",((i>>1)<<1)^(j<(i>>1)?0:1));printf("\n");}}
^
main.cpp:2:90: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main(){freopen("sah.in","r",stdin);freopen("sah.out","w",stdout);int n,i,j;scanf("%d",&n);for(i=0;i<n;++i){for(j=0;j<n;++j)printf("%d ",((i>>1)<<1)^(j<(i>>1)?0:1));printf("\n");}}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK! | 10 |
2 | 2ms | 131kb | OK! | 10 |
3 | 4ms | 131kb | OK! | 10 |
4 | 25ms | 393kb | OK! | 10 |
5 | 35ms | 524kb | OK! | 10 |
6 | 63ms | 917kb | OK! | 10 |
7 | 118ms | 1835kb | OK! | 10 |
8 | 127ms | 1966kb | OK! | 10 |
9 | 201ms | 2883kb | Time limit exceeded | 0 |
10 | 200ms | 2752kb | Time limit exceeded | 0 |
Punctaj total | 80 |