Borderou de evaluare (job #1857575)
Utilizator | Data | 26 ianuarie 2017 13:29:54 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | 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("stramosi.in","r", stdin);
^
user.cpp:8:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("stramosi.out","w", stdout);
^
user.cpp: In function ‘void stramosi()’:
user.cpp:13:33: warning: writing into constant object (argument 2) [-Wformat=]
scanf("%d", "%d", &x, &y);
^
user.cpp:13:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘const char*’ [-Wformat=]
user.cpp:13:33: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:17:14: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
x=v;
^
user.cpp:20: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:25:24: warning: writing into constant object (argument 2) [-Wformat=]
scanf("%d","%d", &n, &m);
^
user.cpp:25:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘const char*’ [-Wformat=]
user.cpp:25:24: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:28:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[250000]’ [-Wformat=]
scanf("%d", &v);
^
user.cpp:25:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d","%d", &n, &m);
^
user.cpp:28: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:13:34: 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 !