Pagini recente » Borderou de evaluare (job #1839600) | Borderou de evaluare (job #1581389) | Borderou de evaluare (job #735789) | Borderou de evaluare (job #1122881) | Borderou de evaluare (job #1462855)
Borderou de evaluare (job #1462855)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
if(s%k!=0) printf("%ld\n",-1);
^
user.cpp:27:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
else if(dr>s) {printf("%ld\n",-1); i=n+1; ok=1;}
^
user.cpp:37:53: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
if(dr==s) {dr=0; printf("%ld ",i);}
^
user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv3.in","r",stdin);
^
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv3.out","w",stdout);
^
user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:13:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
user.cpp:21:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:24:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
user.cpp:32:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:35:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 268kb | OK | 10 |
| 2 | 0ms | 268kb | OK | 10 |
| 3 | 0ms | 264kb | OK | 10 |
| 4 | 0ms | 272kb | OK | 10 |
| 5 | 4ms | 268kb | OK | 10 |
| 6 | 4ms | 268kb | OK | 10 |
| 7 | 56ms | 268kb | OK | 10 |
| 8 | 128ms | 272kb | OK | 10 |
| 9 | 56ms | 264kb | OK | 10 |
| 10 | 16ms | 264kb | OK | 10 |
| Punctaj total | 100 |