Borderou de evaluare (job #1813378)
Utilizator | Data | 22 noiembrie 2016 22:06:50 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void print_results(int)’:
user.cpp:30:37: error: ‘printf’ was not declared in this scope
if (D[i] == INF) printf("0 ");
^
user.cpp:31:32: error: ‘printf’ was not declared in this scope
else printf("%d ", D[i]);
^
user.cpp:33:16: error: ‘printf’ was not declared in this scope
printf("\n");
^
user.cpp: In function ‘void read_data(int&)’:
user.cpp:58:25: error: ‘scanf’ was not declared in this scope
scanf("%d%d", &N, &M);
^
user.cpp: In function ‘int main()’:
user.cpp:74:31: error: ‘stdin’ was not declared in this scope
freopen("dijkstra.in","r",stdin);
^
user.cpp:74:36: error: ‘freopen’ was not declared in this scope
freopen("dijkstra.in","r",stdin);
^
user.cpp:75:32: error: ‘stdout’ was not declared in this scope
freopen("dijkstra.out","w",stdout);
^
user.cpp:82:17: error: ‘fclose’ was not declared in this scope
fclose(stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !