Borderou de evaluare (job #2677172)
Utilizator | Data | 25 noiembrie 2020 22:02:51 | |
---|---|---|---|
Problema | Conserve | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:0: warning: ignoring #pragma comment [-Wunknown-pragmas]
#pragma comment(linker, "/stack:200000000")
main.cpp: In function 'int main()':
main.cpp:13:3: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(false);
^~~~~~~~
main.cpp:14:3: error: 'cin' was not declared in this scope
cin.tie(0);
^~~
main.cpp:16:3: error: 'ifstream' was not declared in this scope
ifstream cin("conserve.in");
^~~~~~~~
main.cpp:17:3: error: 'ofstream' was not declared in this scope
ofstream cout("conserve.out");
^~~~~~~~
main.cpp:20:3: error: 'vector' was not declared in this scope
vector<int> w(n);
^~~~~~
main.cpp:20:10: error: expected primary-expression before 'int'
vector<int> w(n);
^~~
main.cpp:22:10: error: expected primary-expression before 'int'
vector<int> dp(p, -1e9), ndp(dp);
^~~
main.cpp:23:17: error: expected primary-expression before 'bool'
vector<vector<bool>> choose(n, vector<bool>(p, 0));
^~~~
main.cpp:24:3: error: 'dp' was not declared in this scope
dp[0] = ndp[0] = 0;
^~
main.cpp:24:11: error: 'ndp' was not declared in this scope
dp[0] = ndp[0] = 0;
^~~
main.cpp:27:12: error: 'w' was not declared in this scope
cin >> w[i];
^
main.cpp:32:9: error: 'choose' was not declared in this scope
choose[i][nj] = true;
^~~~~~
main.cpp:43:10: error: expected primary-expression before 'int'
vector<int> ans;
^~~
main.cpp:45:9: error: 'choose' was not declared in this scope
if (choose[i][j]) {
^~~~~~
main.cpp:46:21: error: 'w' was not declared in this scope
int nj = (j - w[i]) % p;
^
main.cpp:48:7: error: 'ans' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !