Borderou de evaluare (job #1856809)
Utilizator | Data | 25 ianuarie 2017 14:37:48 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("stramosi.in", "r", stdin);
^
user.cpp:6:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("stramosi.out", "w", stdout);
^
user.cpp: In function ‘void stramosi()’:
user.cpp:15:14: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
x=v;
^
user.cpp:18:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
printf("%d\n", v); }
^
user.cpp: In function ‘int main()’:
user.cpp:26:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[250000]’ [-Wformat=]
scanf("%d", &v);
^
user.cpp:23: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:26:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v);
^
user.cpp: In function ‘void stramosi()’:
user.cpp:11:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !