Pagini recente »
Borderou de evaluare (job #211986)
|
Borderou de evaluare (job #226450)
|
Borderou de evaluare (job #803340)
|
Borderou de evaluare (job #82184)
|
Borderou de evaluare (job #752156)
Borderou de evaluare (job #752156)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:35:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen("2numere.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:37:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | freopen("2numere.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:73:32: warning: 'n1' may be used uninitialized [-Wmaybe-uninitialized]
73 | if(diff == ans && num1 < n1) {
| ~~~~~^~~~
main.cpp:43:12: note: 'n1' was declared here
43 | int n, n1, n2, ans = INF;
| ^~
main.cpp:105:33: warning: 'n2' may be used uninitialized [-Wmaybe-uninitialized]
105 | cout << n1 << '\n' << n2 << '\n' << ans;
| ^~~~
main.cpp:43:16: note: 'n2' was declared here
43 | int n, n1, n2, ans = INF;
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 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
|
19 ms
|
249 kb
|
OK
|
10
|
7
|
19 ms
|
245 kb
|
OK
|
10
|
8
|
29 ms
|
249 kb
|
OK
|
10
|
9
|
89 ms
|
249 kb
|
OK
|
10
|
10
|
19 ms
|
245 kb
|
OK
|
10
|
Punctaj total
|
100
|