Pagini recente » Borderou de evaluare (job #1999778) | Borderou de evaluare (job #1010917) | Borderou de evaluare (job #2799744) | Borderou de evaluare (job #1248364) | Borderou de evaluare (job #1534652)
Borderou de evaluare (job #1534652)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<g[3].size();i++) k++,t[k].tip=3,t[k].pos=g[3][i];
^
user.cpp:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<g[1].size();i++) k++,t[k].tip=1,t[k].pos=g[1][i];
^
user.cpp:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<g[2].size();i++) k++,t[k].tip=2,t[k].pos=g[2][i];
^
user.cpp:14:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trenul.in","r",stdin);
^
user.cpp:15:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trenul.out","w",stdout);
^
user.cpp:16:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:18:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=m;i++) scanf("%d",&v[i]),g[v[i]].push_back(i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 316kb | Corect | 10 |
2 | 4ms | 528kb | Corect | 10 |
3 | 12ms | 1048kb | Corect | 10 |
4 | 28ms | 1868kb | Corect | 10 |
5 | 40ms | 2632kb | Corect | 10 |
6 | 56ms | 3720kb | Corect | 10 |
7 | 52ms | 3400kb | Corect | 10 |
8 | 56ms | 3688kb | Corect | 10 |
9 | 60ms | 4000kb | Corect | 10 |
10 | 56ms | 3724kb | Corect | 10 |
Punctaj total | 100 |