Borderou de evaluare (job #2438619)
Utilizator | Data | 12 iulie 2019 23:20:34 | |
---|---|---|---|
Problema | Sudest | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:24: error: 'n' was not declared in this scope
fscanf(fin, "%d", &n);
^
main.cpp:20:9: error: 'i' was not declared in this scope
for(i=1; i<=n; ++i)
^
main.cpp:21:13: error: 'j' was not declared in this scope
for(j=1; j<=n; ++j)
^
main.cpp:23:32: error: 'x' was not declared in this scope
fscanf(fin, "%d", &x);
^
main.cpp:24:13: error: 'col' was not declared in this scope
col[i][j] = x + col[i-1][j];
^~~
main.cpp:25:13: error: 'lin' was not declared in this scope
lin[i][j] = x + lin[i][j-1];
^~~
main.cpp:27:24: error: 'k' was not declared in this scope
fscanf(fin, "%d", &k);
^
main.cpp:28:9: error: 'i' was not declared in this scope
for(i=1; i<=k; ++i)
^
main.cpp:29:28: error: 'comanda' was not declared in this scope
fscanf(fin, "%d", &comanda[i]);
^~~~~~~
main.cpp:31:9: error: 'i' was not declared in this scope
for(i=1; i<=n; ++i)
^
main.cpp:32:13: error: 'j' was not declared in this scope
for(j=1; j<=n; ++j)
^
main.cpp:34:22: error: 'a' was not declared in this scope
cost[1][1].sum = a[1][1];
^
main.cpp:38:9: error: 'x' was not declared in this scope
x = q.top.first;
^
main.cpp:38:13: error: 'q.std::priority_queue<_Tp, _Sequence, _Compare>::top<std::pair<int, int>, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >, std::less<std::pair<int, int> > >' does not have class type
x = q.top.first;
^
main.cpp:39:9: error: 'y' was not declared in this scope
y = q.top.second;
^
main.cpp:39:13: error: 'q.std::priority_queue<_Tp, _Sequence, _Compare>::top<std::pair<int, int>, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >, std::less<std::pair<int, int> > >' does not have class type
y = q.top.second;
^
main.cpp:40:9: error: 'ok1' 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 !