Pagini recente » Borderou de evaluare (job #2548741) | Borderou de evaluare (job #2966080) | Borderou de evaluare (job #2242491) | Borderou de evaluare (job #2798895) | Borderou de evaluare (job #1606643)
Borderou de evaluare (job #1606643)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100010]’ [-Wformat=]
fscanf(f, "%s", &a);
^
user.cpp:24:32: warning: NULL used in arithmetic [-Wpointer-arith]
while (!feof(f) && a[i] != NULL)
^
user.cpp:21:16: warning: unused variable ‘j’ [-Wunused-variable]
int i = 0, j = 0;
^
user.cpp:18:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%s", &a);
^
user.cpp:23:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "\n%c", &c);
^
user.cpp:26:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fprintf(g, "%d ", i+1), i++, fscanf(f, "%c", &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 424kb | Corect | 10 | 100 |
2 | 0ms | 424kb | Corect | 10 |
3 | 0ms | 420kb | Corect | 10 |
4 | 0ms | 428kb | Corect | 10 |
5 | 0ms | 436kb | Corect | 10 |
6 | 0ms | 444kb | Corect | 10 |
7 | 4ms | 476kb | Corect | 10 |
8 | 0ms | 492kb | Corect | 10 |
9 | 20ms | 524kb | Corect | 10 |
10 | 0ms | 520kb | Corect | 10 |
Punctaj total | 100 |