Borderou de evaluare (job #1974487)
Utilizator | Data | 27 aprilie 2017 20:04:39 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:33:17: error: ISO C++ forbids declaration of ‘resize’ with no type [-fpermissive]
resize(int k) {
^
user.cpp: In member function ‘int SegmentTree::resize(int)’:
user.cpp:35:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void Solve()’:
user.cpp:159:16: warning: unused variable ‘ch’ [-Wunused-variable]
int x,y,op,ch;
^
user.cpp: In function ‘void read()’:
user.cpp:75:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:77:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &valori[i]);
^
user.cpp:81:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp: In function ‘void Solve()’:
user.cpp:161:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &op, &x, &y);
^
user.cpp: In function ‘int main()’:
user.cpp:176:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heavypath.in", "r", stdin);
^
user.cpp:177:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("heavypath.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !