Borderou de evaluare (job #1197858)
Utilizator | Data | 13 iunie 2014 23:01:02 | |
---|---|---|---|
Problema | Perioada2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:21: error: expected primary-expression before ‘]’ token
char *s = new char[];
^
user.cpp:15:33: error: expected primary-expression before ‘]’ token
char *subsir_curent = new char[];
^
user.cpp:16:35: error: expected primary-expression before ‘]’ token
char *subsir_perioada = new char[];
^
user.cpp:17:6: warning: unused variable ‘lungime_subsir_actual’ [-Wunused-variable]
int lungime_subsir_actual;
^
user.cpp:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada2.in", "r", stdin);
^
user.cpp:20:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada2.out", "w", stdout);
^
user.cpp:23:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !