Borderou de evaluare (job #1737396)
Utilizator | Data | 3 august 2016 22:52:59 | |
---|---|---|---|
Problema | Mine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int GetTime(int, int)’:
user.cpp:78:16: error: ‘INT_MAX’ was not declared in this scope
return INT_MAX;
^
user.cpp:82:16: error: ‘INT_MAX’ was not declared in this scope
return INT_MAX;
^
user.cpp: In function ‘void Dijkstra()’:
user.cpp:89:17: error: ‘INT_MAX’ was not declared in this scope
best[i]=INT_MAX;
^
user.cpp:97:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<g[node.node].size();i++){
^
user.cpp:105:17: error: ‘INT_MAX’ was not declared in this scope
if(best[n]==INT_MAX)
^
user.cpp: In function ‘void read(int&)’:
user.cpp:26:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer,1,DIM,stdin);
^
user.cpp:34:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer,1,DIM,stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:111:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mine.in","r",stdin);
^
user.cpp:112:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mine.out","w",stdout);
^
user.cpp:114:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer,1,DIM,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !