Borderou de evaluare (job #2237777)
Utilizator | Data | 3 septembrie 2018 01:37:03 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:6:17: error: variable ‘std::ifstream fin’ has initializer but incomplete type
ifstream fin("royfloyd.in");
^
user.cpp:7:18: error: variable ‘std::ofstream fout’ has initializer but incomplete type
ofstream fout("royfloyd.out");
^
user.cpp:10:5: error: ‘vector’ was not declared in this scope
vector<vector<int>> adj(110,vector<int>(110));
^~~~~~
user.cpp:10:19: error: expected primary-expression before ‘int’
vector<vector<int>> adj(110,vector<int>(110));
^~~
user.cpp:15:18: error: ‘adj’ was not declared in this scope
fin>>adj[i][j];
^~~
user.cpp:20:31: error: ‘k’ was not declared in this scope
if(i!=j && i!=k && j!=k)
^
user.cpp:21:21: error: ‘adj’ was not declared in this scope
adj[i][j]=min(adj[i][j],adj[i][intermediate]+a[intermediate][j]);
^~~
user.cpp:21:66: error: ‘a’ was not declared in this scope
adj[i][j]=min(adj[i][j],adj[i][intermediate]+a[intermediate][j]);
^
user.cpp:25:19: error: ‘a’ was not declared in this scope
fout<<a[i][j]<<' ';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !