Pagini recente » Borderou de evaluare (job #1612174) | Borderou de evaluare (job #1686941) | Borderou de evaluare (job #1127344) | Borderou de evaluare (job #490865) | Borderou de evaluare (job #1217505)
Borderou de evaluare (job #1217505)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d %d\n",&n,&k);
^
user.cpp:10:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d %d\n",n,k);return 0;
^
user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
user.cpp:13:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
for (i=1;i<=n && k<(N=(x-1)*(x-2)/2);++i,--x) printf("%d ",i);
^
user.cpp:14:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if (k-N+i>0) printf("%d ",k-N+i),s[k-N+i]=1;
^
user.cpp:15:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
for (i=1;i<=n;++i) if (!s[i]) printf("%d ",i),s[i]=1;
^
user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("farfurii.in","r",stdin);
^
user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("farfurii.out","w",stdout);
^
user.cpp:10:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&n,&k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 256kb | Wrong answer! | 0 |
2 | 0ms | 252kb | Wrong answer! | 0 |
3 | 0ms | 256kb | Wrong answer! | 0 |
4 | 0ms | 256kb | Wrong answer! | 0 |
5 | 0ms | 256kb | Wrong answer! | 0 |
6 | 0ms | 248kb | Wrong answer! | 0 |
7 | 0ms | 256kb | Wrong answer! | 0 |
8 | 0ms | 252kb | Wrong answer! | 0 |
9 | 0ms | 248kb | Wrong answer! | 0 |
10 | 0ms | 252kb | Wrong answer! | 0 |
Punctaj total | 0 |