Pagini recente » Borderou de evaluare (job #92804) | Borderou de evaluare (job #710509) | Borderou de evaluare (job #530175) | Borderou de evaluare (job #2772487) | Borderou de evaluare (job #2598845)
Borderou de evaluare (job #2598845)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=1;i<=n;i++)scanf("%d",&a[i]); c[n]=n;
^~~
main.cpp:31:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int i=1;i<=n;i++)scanf("%d",&a[i]); c[n]=n;
^
main.cpp:27:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("aliniere.in", "r", stdin);
^
main.cpp:28:45: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("aliniere.out", "w", stdout);
^
main.cpp:30:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:31:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i=1;i<=n;i++)scanf("%d",&a[i]); c[n]=n;
^
main.cpp:38:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
^
main.cpp:41:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int k;scanf("%d",&k);
^
main.cpp:43:56: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i=0;i<k;i++)scanf("%d",&id[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 6ms | 131kb | OK | 10 |
5 | 6ms | 131kb | OK | 10 |
6 | 7ms | 131kb | OK | 10 |
7 | 363ms | 917kb | Incorect | 0 |
8 | 353ms | 917kb | Incorect | 0 |
9 | 387ms | 917kb | Incorect | 0 |
10 | 361ms | 917kb | Incorect | 0 |
Punctaj total | 60 |