Pagini recente » Borderou de evaluare (job #912274) | Borderou de evaluare (job #1077128) | Borderou de evaluare (job #1906754) | Borderou de evaluare (job #2133205) | Borderou de evaluare (job #2193436)
Borderou de evaluare (job #2193436)
Raport evaluator
Compilare:
user.cpp: In function ‘void slv()’:
user.cpp:31:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n);
^~~
user.cpp:31:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n);
^~~~
user.cpp:32:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n);
^~~
user.cpp:32:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n);
^~~~
user.cpp:74:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<std::pair<int, int> >::size_type {aka unsigned int}’ [-Wformat=]
printf("%lu\n", ans.size());
^
user.cpp:30:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:31:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n);
^
user.cpp:32:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n);
^
user.cpp: In function ‘int main()’:
user.cpp:80:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("magnet.in", "r", stdin);
^
user.cpp:81:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("magnet.out", "w", stdout);
^
user.cpp:82:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int t; scanf("%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1332kb | Configuratia finala incorecta | 0 |
2 | 0ms | 1332kb | OK! | 10 |
3 | 0ms | 1340kb | Configuratia finala incorecta | 0 |
4 | 0ms | 1344kb | OK! | 10 |
5 | 24ms | 1748kb | OK! | 10 |
6 | 48ms | 1880kb | OK! | 10 |
7 | 36ms | 2008kb | OK! | 10 |
8 | 68ms | 2088kb | OK! | 10 |
9 | 72ms | 2152kb | OK! | 10 |
10 | 96ms | 2224kb | OK! | 10 |
Punctaj total | 80 |