Pagini recente » Borderou de evaluare (job #2524518) | Borderou de evaluare (job #2389590) | Borderou de evaluare (job #3249314) | Borderou de evaluare (job #992543) | Borderou de evaluare (job #2144031)
Borderou de evaluare (job #2144031)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::pair<int, int> >::size_type {aka long unsigned int}’ [-Wformat=]
printf("%d\n",sirag.size());
^
user.cpp:34:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<sirag.size();i++)
^
user.cpp:11:21: warning: unused variable ‘num’ [-Wunused-variable]
int n,i,last=0,ok=0,num=0,x,k,start,cnt;
^
user.cpp:9:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pietre3.in","r",stdin);
^
user.cpp:10:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pietre3.out","w",stdout);
^
user.cpp:12:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:14:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x),v[x]=1,last=max(last,x);
^
user.cpp:15:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:16:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=k;i++)scanf("%d",&x),f[x]++,f2[x]++;
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 2936kb | OK | 10 |
| 2 | 0ms | 2940kb | OK | 10 |
| 3 | 24ms | 4224kb | OK | 10 |
| 4 | 8ms | 3252kb | OK | 10 |
| 5 | 0ms | 2936kb | OK | 10 |
| 6 | 20ms | 3248kb | OK | 10 |
| 7 | 40ms | 3496kb | OK | 10 |
| 8 | 40ms | 3496kb | OK | 10 |
| 9 | 28ms | 3080kb | OK | 10 |
| 10 | 0ms | 2936kb | OK | 10 |
| Punctaj total | 100 |