Pagini recente » Borderou de evaluare (job #618976) | Borderou de evaluare (job #804109) | Borderou de evaluare (job #743739) | Borderou de evaluare (job #2492109) | Borderou de evaluare (job #1225820)
Borderou de evaluare (job #1225820)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:49:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for (i=1;i<=n;++i) scanf("%d %d",&v[i].c,&v[i].t);
^
user.cpp:49:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:52:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for (i=1;i<=p;++i) scanf("%d",&d[i]); sort(d+1,d+p+1);
^
user.cpp:55:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&x);
^
user.cpp:64:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",d[q]);
^
user.cpp: In function ‘int cb()’:
user.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int cbd(long long int)’:
user.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ambuscada.in","r",stdin);
^
user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ambuscada.out","w",stdout);
^
user.cpp:48:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&n,&k,&m,&p);
^
user.cpp:49:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;++i) scanf("%d %d",&v[i].c,&v[i].t);
^
user.cpp:52:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=p;++i) scanf("%d",&d[i]); sort(d+1,d+p+1);
^
user.cpp:55:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | Incorect | 0 |
2 | 0ms | 280kb | Incorect | 0 |
3 | 44ms | 1068kb | Incorect | 0 |
4 | 120ms | 1060kb | Incorect | 0 |
5 | 24ms | 464kb | Incorect | 0 |
6 | 32ms | 648kb | Incorect | 0 |
7 | 64ms | 812kb | Incorect | 0 |
8 | 96ms | 2216kb | Incorect | 0 |
9 | 204ms | 2800kb | Incorect | 0 |
10 | 232ms | 3376kb | Incorect | 0 |
Punctaj total | 0 |