Pagini recente » Borderou de evaluare (job #636040) | Borderou de evaluare (job #636079) | Borderou de evaluare (job #283352) | Borderou de evaluare (job #831377) | Borderou de evaluare (job #1685358)
Borderou de evaluare (job #1685358)
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:17:9: warning: overflow in implicit constant conversion [-Woverflow]
P[0]=inf;
^
user.cpp:20:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(P[i]<=P[i-1]&&P[i]<=P[i+1])
^
user.cpp:28:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"%d",pmax);
^
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 | 264kb | Incorect | 0 | 0 |
| 2 | 0ms | 272kb | Incorect | 0 |
| 3 | 0ms | 272kb | OK | 10 |
| 4 | 0ms | 272kb | Incorect | 0 |
| 5 | 0ms | 272kb | Incorect | 0 |
| 6 | 0ms | 312kb | Incorect | 0 |
| 7 | 0ms | 312kb | Incorect | 0 |
| 8 | 28ms | 660kb | Incorect | 0 |
| 9 | 24ms | 664kb | Incorect | 0 |
| 10 | 24ms | 664kb | Incorect | 0 |
| Punctaj total | 0 |