Pagini recente » Borderou de evaluare (job #2335110) | Borderou de evaluare (job #2154591) | Borderou de evaluare (job #1291009) | Borderou de evaluare (job #83726) | Borderou de evaluare (job #1225821)
Borderou de evaluare (job #1225821)
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: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:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | Incorect | 0 |
2 | 0ms | 284kb | Incorect | 0 |
3 | 48ms | 1076kb | Incorect | 0 |
4 | 124ms | 1064kb | Incorect | 0 |
5 | 24ms | 464kb | Incorect | 0 |
6 | 32ms | 656kb | Incorect | 0 |
7 | 64ms | 820kb | Incorect | 0 |
8 | 96ms | 2228kb | Incorect | 0 |
9 | 200ms | 2808kb | Incorect | 0 |
10 | 228ms | 3388kb | Incorect | 0 |
Punctaj total | 0 |