Pagini recente » Borderou de evaluare (job #1306992) | Borderou de evaluare (job #1712401) | Borderou de evaluare (job #2999011) | Borderou de evaluare (job #2752714) | Borderou de evaluare (job #1423232)
Borderou de evaluare (job #1423232)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:47:31: warning: operation on ‘i’ may be undefined [-Wsequence-point]
for(i=1;i<=n;a[i].second=i++) scanf("%ld",&a[i].first);
^
user.cpp:61:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘std::vector<long int>::size_type {aka unsigned int}’ [-Wformat=]
printf("%ld\n",ans.size()*2);
^
user.cpp:62:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<ans.size();i++) printf("P %ld\nP %ld\n",ans[i]-1,ans[i]);
^
user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.in","r",stdin);
^
user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.out","w",stdout);
^
user.cpp:46:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n); AIB Aib(n);
^
user.cpp:47:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;a[i].second=i++) scanf("%ld",&a[i].first);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 8260kb | OK | 10 |
2 | 36ms | 8524kb | OK | 10 |
3 | 56ms | 8708kb | OK | 10 |
4 | 56ms | 8708kb | OK | 10 |
5 | 52ms | 8708kb | OK | 10 |
6 | 52ms | 8708kb | OK | 10 |
7 | 104ms | 9124kb | OK | 10 |
8 | 104ms | 9120kb | OK | 10 |
9 | 104ms | 9120kb | OK | 10 |
10 | 8ms | 8256kb | OK | 10 |
Punctaj total | 100 |