Pagini recente » Borderou de evaluare (job #448344) | Borderou de evaluare (job #2329384) | Borderou de evaluare (job #1775541) | Borderou de evaluare (job #3251201) | Borderou de evaluare (job #2193431)
Borderou de evaluare (job #2193431)
Raport evaluator
Compilare:
user.cpp: In function ‘void slv()’:
user.cpp:28: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:28: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:29: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:29: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:72: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:27:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:28: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:29: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:78: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:79: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:80: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 | Raspuns gresit! | 0 |
2 | 0ms | 1328kb | OK! | 10 |
3 | 0ms | 1368kb | OK! | 10 |
4 | 0ms | 1372kb | OK! | 10 |
5 | 24ms | 1752kb | OK! | 10 |
6 | 48ms | 1880kb | OK! | 10 |
7 | 36ms | 2012kb | OK! | 10 |
8 | 64ms | 2084kb | OK! | 10 |
9 | 72ms | 2148kb | OK! | 10 |
10 | 96ms | 2224kb | OK! | 10 |
Punctaj total | 90 |