Borderou de evaluare (job #2170970)
Utilizator | Data | 15 martie 2018 10:39:18 | |
---|---|---|---|
Problema | Vase | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:30: error: expression list treated as compound expression in initializer [-fpermissive]
FILE* FIN("vase.in","r",stdin);
^
user.cpp:4:30: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:4:30: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:5:33: error: expression list treated as compound expression in initializer [-fpermissive]
FILE* FOUT("vase.out","w",stdout);
^
user.cpp:5:33: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:5:33: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp: In function ‘void citeshte(int)’:
user.cpp:12:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d %c",marime,pozlit);
^
user.cpp:12:32: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int’ [-Wformat=]
user.cpp:11:23: warning: unused variable ‘op’ [-Wunused-variable]
int pozlit,marime,op=0;
^
user.cpp: In function ‘int main()’:
user.cpp:51:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d",x);
^
user.cpp: In function ‘void citeshte(int)’:
user.cpp:12:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %c",marime,pozlit);
^
user.cpp: In function ‘int main()’:
user.cpp:45:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:51:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !