Pagini recente » Borderou de evaluare (job #2379667) | Borderou de evaluare (job #478659) | Borderou de evaluare (job #3176648) | Borderou de evaluare (job #1222685) | Borderou de evaluare (job #3284199)
Borderou de evaluare (job #3284199)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:83:21: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
83 | else if (im == imax)
| ^
main.cpp:92:63: warning: 'kmax' may be used uninitialized [-Wmaybe-uninitialized]
92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax;
| ^~~~
main.cpp:11:24: note: 'kmax' was declared here
11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost;
| ^~~~
main.cpp:92:56: warning: 'jmax' may be used uninitialized [-Wmaybe-uninitialized]
92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax;
| ^~~
main.cpp:11:18: note: 'jmax' was declared here
11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost;
| ^~~~
main.cpp:92:41: warning: 'imax' may be used uninitialized [-Wmaybe-uninitialized]
92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax;
| ^~~
main.cpp:11:12: note: 'imax' was declared here
11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost;
| ^~~~
main.cpp:32:20: warning: 'km' may be used uninitialized [-Wmaybe-uninitialized]
32 | int costm, im, km;
| ^~
main.cpp:83:18: warning: 'im' may be used uninitialized [-Wmaybe-uninitialized]
83 | else if (im == imax)
| ^~
main.cpp:32:16: note: 'im' was declared here
32 | int costm, im, km;
| ^~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 10 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 |
| 4 | 0ms | 303kb | OK | 10 |
| 5 | 0ms | 303kb | OK | 10 |
| 6 | 9ms | 303kb | OK | 10 |
| 7 | 19ms | 303kb | OK | 10 |
| 8 | 24ms | 303kb | OK | 10 |
| 9 | 24ms | 303kb | OK | 10 |
| 10 | 24ms | 303kb | OK | 10 |
| Punctaj total | 100 |