Pagini recente » Borderou de evaluare (job #842082) | Borderou de evaluare (job #2224014) | Borderou de evaluare (job #2708356) | Borderou de evaluare (job #2198217) | Borderou de evaluare (job #1183116)
Borderou de evaluare (job #1183116)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int16_t* {aka short int*}’ [-Wformat=]
for (i=1;i<=n;i++) {fscanf(f,"%d",&v[i]);
^
user.cpp:25:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:26:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) {fscanf(f,"%d",&v[i]);
^
user.cpp:29:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
while (m!=0) {fscanf(f,"%d",&k);
^
user.cpp:30:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==0) {fscanf(f,"%d %d",&a,&b);
^
user.cpp:32:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==1) {fscanf(f,"%d %d",&a,&b);
^
user.cpp:34:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==2) {fscanf(f,"%d",&a);
^
user.cpp:42:26: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (s!=a) fprintf(g,"-1\n");
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 4ms | 292kb | OK | 10 |
4 | 32ms | 408kb | OK | 10 |
5 | 68ms | 456kb | OK | 10 |
6 | 104ms | 640kb | OK | 10 |
7 | 112ms | 756kb | OK | 10 |
8 | 164ms | 840kb | OK | 10 |
9 | 164ms | 832kb | OK | 10 |
10 | 160ms | 836kb | OK | 10 |
Punctaj total | 100 |