Borderou de evaluare (job #1729323)
Utilizator | Data | 14 iulie 2016 16:27:32 | |
---|---|---|---|
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 citire()’:
user.cpp:31:13: error: expected unqualified-id before numeric constant
for(int 1 = 0; i <= n; i++)
^
user.cpp:31:13: error: expected ‘;’ before numeric constant
user.cpp:31:15: error: lvalue required as left operand of assignment
for(int 1 = 0; i <= n; i++)
^
user.cpp:31:20: error: ‘i’ was not declared in this scope
for(int 1 = 0; i <= n; i++)
^
user.cpp:31:26: error: expected ‘)’ before ‘;’ token
for(int 1 = 0; i <= n; i++)
^
user.cpp:31:28: error: ‘i’ was not declared in this scope
for(int 1 = 0; i <= n; i++)
^
user.cpp:31:31: error: expected ‘;’ before ‘)’ token
for(int 1 = 0; i <= n; i++)
^
user.cpp:22:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:26:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &tmp1, &tmp2, &tmp3);
^
user.cpp: In function ‘int main()’:
user.cpp:77:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in", "r", stdin);
^
user.cpp:78:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !