Borderou de evaluare (job #1832495)
Utilizator | Data | 20 decembrie 2016 09:44:48 | |
---|---|---|---|
Problema | G2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: ‘string’ does not name a type
string nr;
^
user.cpp: In function ‘int main()’:
user.cpp:8:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d", n);
^
user.cpp:12:13: error: ‘nr’ was not declared in this scope
nr=char(i+48)+nr;
^
user.cpp:15:18: error: ‘nr’ was not declared in this scope
printf("%d", nr);
^
user.cpp:6:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("g2.in","r",stdin);
^
user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("g2.out","w",stdout);
^
user.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !