Borderou de evaluare (job #1353332)
Utilizator | Data | 21 februarie 2015 14:06:10 | |
---|---|---|---|
Problema | Por Costel si Invazia Extraterestra | Status | done |
Runda | ONIS 2015, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void relax(int, int, int)’:
user.cpp:43:15: warning: unused variable ‘mij’ [-Wunused-variable]
long long mij=(st+dr)/2;
^
user.cpp: In function ‘void make(int)’:
user.cpp:135:8: error: request for member ‘clear’ in ‘hA’, which is of non-class type ‘std::unordered_map<int, int> [1200410]’
hA.clear();
^
user.cpp:136:8: error: request for member ‘clear’ in ‘hU’, which is of non-class type ‘std::unordered_map<int, int> [1200410]’
hU.clear();
^
user.cpp: In function ‘int maxa(int, int, int, int)’:
user.cpp:79:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:142:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("invazia.in","r",stdin);
^
user.cpp:143:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("invazia.out","w",stdout);
^
user.cpp:145:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&N,&M);
^
user.cpp:155:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&car);
^
user.cpp:159:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&car);
^
user.cpp:169:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d\n",&x,&y,&z);
^
user.cpp:174:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !