Borderou de evaluare (job #1685368)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d %d",&N,&S);
^
user.cpp:18:9: warning: overflow in implicit constant conversion [-Woverflow]
P[0]=inf;
^
user.cpp:32:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"%d",S-s);
^
user.cpp:12:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&N,&S);
^
user.cpp:15:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&P[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 272kb | OK | 10 | 0 |
2 | 0ms | 272kb | Incorect | 0 |
3 | 0ms | 272kb | OK | 10 |
4 | 0ms | 276kb | OK | 10 |
5 | 0ms | 272kb | OK | 10 |
6 | 0ms | 308kb | Incorect | 0 |
7 | 0ms | 304kb | OK | 10 |
8 | 28ms | 660kb | Incorect | 0 |
9 | 24ms | 660kb | OK | 10 |
10 | 24ms | 660kb | Incorect | 0 |
Punctaj total | 0 |