Borderou de evaluare (job #1596335)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:15: warning: unused variable ‘j’ [-Wunused-variable]
int n, i, j, s, t, d, k, p, ma;
^
user.cpp:20:33: warning: unused variable ‘ma’ [-Wunused-variable]
int n, i, j, s, t, d, k, p, ma;
^
user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calcule.in","r",stdin);
^
user.cpp:18:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calcule.out","w",stdout);
^
user.cpp:23: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:27:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:34:25: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized]
else P[p] = v[i];
^
user.cpp: In function ‘int caut(int, int)’:
user.cpp:66:12: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return k;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 8ms | 372kb | OK | 10 |
3 | 28ms | 540kb | OK | 10 |
4 | 32ms | 628kb | OK | 10 |
5 | 36ms | 676kb | OK | 10 |
6 | 12ms | 480kb | OK | 10 |
7 | 28ms | 652kb | OK | 10 |
8 | 36ms | 748kb | OK | 10 |
9 | 40ms | 796kb | OK | 10 |
10 | 40ms | 860kb | OK | 10 |
Punctaj total | 100 |