Pagini recente » Borderou de evaluare (job #2193046) | Borderou de evaluare (job #585687) | Borderou de evaluare (job #574716) | Borderou de evaluare (job #476765) | Borderou de evaluare (job #1286299)
Borderou de evaluare (job #1286299)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f, "%d%d", &n, &s);
^
user.cpp:9:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:23:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g, "%d ", s / n - n / 2 + i - 1);
^
user.cpp:27:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g, "%d ", s / n - n / 2 + i);
^
user.cpp:42:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g, "%d ", s / n + i - n / 2);
^
user.cpp:46:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g, "%d ", s / n + i - n / 2 + 1);
^
user.cpp:8:21: warning: unused variable ‘ok’ [-Wunused-variable]
long long n, s, ok = 0;
^
user.cpp:9:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d%d", &n, &s);
^
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
✓ | 1 | 0ms | 256kb | Incorect | 0 | 0 |
✗ | 2 | 0ms | 256kb | Incorect | 0 | 0 |
✗ | 3 | 0ms | 252kb | Incorect | 0 | 0 |
✗ | 4 | 0ms | 252kb | Incorect | 0 | 0 |
✗ | 5 | 0ms | 252kb | Incorect | 0 | 0 |
✓ | 6 | 0ms | 260kb | Incorect | 0 | 0 |
✗ | 7 | 0ms | 256kb | OK | 10 |
✗ | 8 | 0ms | 256kb | Incorect | 0 |
✗ | 9 | 0ms | 256kb | Incorect | 0 | 0 |
✓ | 10 | 0ms | 248kb | OK | 10 | 10 |
Punctaj total | 10 |