Borderou de evaluare (job #1351403)
Utilizator | Data | 21 februarie 2015 10:57:29 | |
---|---|---|---|
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:7:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("invazia.in", "r", stdin);
^
user.cpp:8:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("invazia.out", "w", stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:20:28: warning: too many arguments for format [-Wformat-extra-args]
scanf("%d%d", &x, &y, &z);
^
user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:17:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
user.cpp:20:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y, &z);
^
user.cpp:31:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &r);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !