Pagini recente » Borderou de evaluare (job #1199847) | Borderou de evaluare (job #1259107) | Borderou de evaluare (job #321507) | Borderou de evaluare (job #1674069) | Borderou de evaluare (job #1462852)
Borderou de evaluare (job #1462852)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17: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:28: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:38: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:11: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:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
user.cpp:22: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:25:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
user.cpp:33: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:36: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 | 264kb | OK | 10 |
5 | 4ms | 264kb | OK | 10 |
6 | 4ms | 272kb | OK | 10 |
7 | 60ms | 268kb | OK | 10 |
8 | 124ms | 268kb | OK | 10 |
9 | 52ms | 268kb | OK | 10 |
10 | 16ms | 264kb | OK | 10 |
Punctaj total | 100 |