Borderou de evaluare (job #2829697)
Utilizator | Data | 8 ianuarie 2022 21:05:17 | |
---|---|---|---|
Problema | Tiny Types | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:15: error: 'INT_MAX' was not declared in this scope
5 | int const inf=INT_MAX,N=(int)1e5+3;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 | using namespace std;
main.cpp:6:7: error: 'N' was not declared in this scope
6 | int v[N],dp[N][33],tr[33][33],p[33];
| ^
main.cpp:6:13: error: 'N' was not declared in this scope
6 | int v[N],dp[N][33],tr[33][33],p[33];
| ^
main.cpp: In function 'int main()':
main.cpp:13:14: error: 'v' was not declared in this scope
13 | cin>>v[i];
| ^
main.cpp:25:14: error: 'v' was not declared in this scope
25 | if(i<v[1])
| ^
main.cpp:26:13: error: 'dp' was not declared in this scope; did you mean 'p'?
26 | dp[1][i]=inf;
| ^~
| p
main.cpp:28:13: error: 'dp' was not declared in this scope; did you mean 'p'?
28 | dp[1][i]=p[i-v[i]];
| ^~
| p
main.cpp:33:13: error: 'dp' was not declared in this scope; did you mean 'p'?
33 | { dp[i][j]=inf;
| ^~
| p
main.cpp:34:19: error: 'v' was not declared in this scope
34 | if(j>=v[i])
| ^
main.cpp:51:21: error: 'dp' was not declared in this scope; did you mean 'p'?
51 | rez=min(rez,dp[n][i]);
| ^~
| p
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !