Borderou de evaluare (job #3272617)
Utilizator | Data | 30 ianuarie 2025 11:47:46 | |
---|---|---|---|
Problema | Banuti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:56: error: 'INT_MAX' was not declared in this scope
8 | int n,ind,dist[nmax],aux[nmax],cost[nmax],v[nmax],gmin=INT_MAX,gmax;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <queue>
+++ |+#include <climits>
3 | #define nmax 50005
main.cpp: In function 'int main()':
main.cpp:41:9: error: 'gmax' was not declared in this scope; did you mean 'nmax'?
41 | gmax=max(gmax,dist[i]);
| ^~~~
| nmax
main.cpp:42:8: error: 'gmax' was not declared in this scope; did you mean 'nmax'?
42 | if(gmax==inf)
| ^~~~
| nmax
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !