Pagini recente »
Borderou de evaluare (job #737528)
|
Borderou de evaluare (job #509053)
|
Borderou de evaluare (job #94319)
|
Borderou de evaluare (job #694176)
|
Borderou de evaluare (job #747742)
Borderou de evaluare (job #747742)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:18:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | freopen("2numere.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:19:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | freopen("2numere.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:37:32: warning: 'n1' may be used uninitialized [-Wmaybe-uninitialized]
37 | if(diff == ans && num1 < n1) {
| ~~~~~^~~~
main.cpp:22:12: note: 'n1' was declared here
22 | int n, n1, n2, ans = INF;
| ^~
main.cpp:53:33: warning: 'n2' may be used uninitialized [-Wmaybe-uninitialized]
53 | cout << n1 << '\n' << n2 << '\n' << ans;
| ^~~~
main.cpp:22:16: note: 'n2' was declared here
22 | int n, n1, n2, ans = INF;
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
241 kb
|
OK
|
10
|
2
|
1 ms
|
245 kb
|
OK
|
10
|
3
|
1 ms
|
245 kb
|
OK
|
10
|
4
|
1 ms
|
245 kb
|
OK
|
10
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
6
|
28 ms
|
245 kb
|
OK
|
10
|
7
|
19 ms
|
249 kb
|
OK
|
10
|
8
|
29 ms
|
249 kb
|
OK
|
10
|
9
|
86 ms
|
245 kb
|
OK
|
10
|
10
|
9 ms
|
249 kb
|
OK
|
10
|
Punctaj total
|
100
|