Borderou de evaluare (job #1192044)
Utilizator | Data | 28 mai 2014 20:10:45 | |
---|---|---|---|
Problema | Autobuze2 | Status | done |
Runda | Infoarena Monthly 2014 - Runda 5 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void findSmallestDistance()’:
user.cpp:23:13: error: ‘INT_MAX’ was not declared in this scope
dist[i] = INT_MAX;
^
user.cpp:30:34: error: ‘INT_MAX’ was not declared in this scope
while (!q.empty() && dist[n] == INT_MAX)
^
user.cpp:35:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<adjList[curr.first].size(); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:86:16: error: ‘INT_MAX’ was not declared in this scope
if (dist[n] < INT_MAX)
^
user.cpp:51:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("autobuze2.in", "r", stdin);
^
user.cpp:52:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("autobuze2.out", "w", stdout);
^
user.cpp:54:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:58:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &from, &to);
^
user.cpp:61:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b);
^
user.cpp:65:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:69:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &first);
^
user.cpp:75:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &curr);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !