Pagini recente » Borderou de evaluare (job #3301400) | Borderou de evaluare (job #1137008) | Borderou de evaluare (job #2844229) | Borderou de evaluare (job #2030880) | Borderou de evaluare (job #1321555)
Borderou de evaluare (job #1321555)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(fin, "%d%d", &n, &s);
^
user.cpp:14:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:15:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
for(short int i = 0; i< n; i++) fscanf(fin, "%d", &arr[i]);
^
user.cpp:57:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(fout, "%d\n", sum);
^
user.cpp:14:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &n, &s);
^
user.cpp:15:60: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(short int i = 0; i< n; i++) fscanf(fin, "%d", &arr[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | Incorect | 0 |
2 | 0ms | 264kb | Incorect | 0 |
3 | 0ms | 264kb | Incorect | 0 |
4 | 0ms | 264kb | Incorect | 0 |
5 | 0ms | 268kb | Incorect | 0 |
6 | 0ms | 264kb | Incorect | 0 |
7 | 0ms | 268kb | Incorect | 0 |
8 | 0ms | 264kb | Incorect | 0 |
9 | 0ms | 264kb | Incorect | 0 |
10 | 0ms | 268kb | Incorect | 0 |
Punctaj total | 0 |