Pagini recente » Borderou de evaluare (job #339886) | Borderou de evaluare (job #909464) | Borderou de evaluare (job #1908124) | Borderou de evaluare (job #1576692) | Borderou de evaluare (job #1646242)
Borderou de evaluare (job #1646242)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:61:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.in","r",stdin);
^
user.cpp:62:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.out","w",stdout);
^
user.cpp:63:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&n);
^
user.cpp:64:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d ",&v[i]);
^
user.cpp:65:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&tot);
^
user.cpp:68:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ",&cer,&x);
^
user.cpp: In function ‘int caut0(int, int, int)’:
user.cpp:20:13: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[poz]==val)
^
user.cpp: In function ‘int caut1(int, int, int)’:
user.cpp:40:12: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return poz;
^
user.cpp: In function ‘int caut2(int, int, int)’:
user.cpp:57:13: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return poz;
^
user.cpp: In function ‘int main()’:
user.cpp:20:13: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[poz]==val)
^
user.cpp:8:9: note: ‘poz’ was declared here
int poz;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 276kb | OK | 10 | 10 |
2 | 0ms | 268kb | OK | 10 | 10 |
3 | 0ms | 272kb | OK | 10 | 10 |
4 | 4ms | 272kb | OK | 10 | 10 |
5 | 24ms | 312kb | OK | 10 | 20 |
6 | 80ms | 468kb | OK | 10 |
7 | 120ms | 660kb | OK | 10 | 40 |
8 | 124ms | 660kb | OK | 10 |
9 | 128ms | 664kb | OK | 10 |
10 | 124ms | 664kb | OK | 10 |
Punctaj total | 100 |