Pagini recente » Borderou de evaluare (job #1510705) | Borderou de evaluare (job #2874757) | Borderou de evaluare (job #1073144) | Cod sursa (job #815551) | Borderou de evaluare (job #1737669)
Borderou de evaluare (job #1737669)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d",&v[0]);
^
user.cpp:9:15: warning: unused variable ‘j’ [-Wunused-variable]
int z,c,i,j,a,nr=0,max=-1,poz,aux;
^
user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.in","r",stdin);
^
user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.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",&z,&c);
^
user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[0]);
^
user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&v[i]);
^
user.cpp:39:21: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
for(i=poz;i<=poz+max-1;i++)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 4ms | 312kb | OK | 10 |
4 | 4ms | 320kb | OK | 10 |
5 | 4ms | 316kb | OK | 10 |
6 | 4ms | 284kb | OK | 10 |
7 | 4ms | 296kb | OK | 10 |
8 | 4ms | 292kb | OK | 10 |
9 | 8ms | 308kb | OK | 10 |
10 | 8ms | 312kb | OK | 10 |
Punctaj total | 100 |