Pagini recente » Borderou de evaluare (job #341976) | Borderou de evaluare (job #2141833) | Borderou de evaluare (job #2884632) | Borderou de evaluare (job #1204959) | Borderou de evaluare (job #2626992)
Borderou de evaluare (job #2626992)
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 | 26ms | 393kb | OK! | 10 |
5 | 35ms | 524kb | OK! | 10 |
6 | 64ms | 917kb | OK! | 10 |
7 | 126ms | 1835kb | OK! | 10 |
8 | 140ms | 1966kb | OK! | 10 |
9 | 204ms | 3407kb | Time limit exceeded | 0 |
10 | 203ms | 3014kb | Time limit exceeded | 0 |
Punctaj total | 80 |