Borderou de evaluare (job #1463452)
Utilizator | Data | 20 iulie 2015 23:23:14 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:48:6: error: expected ‘(’ before ‘each’
for each (uint16 item in *c)
^
user.cpp:12:16: error: expected primary-expression before ‘unsigned’
#define uint16 unsigned int16
^
user.cpp:48:12: note: in expansion of macro ‘uint16’
for each (uint16 item in *c)
^
user.cpp:48:29: error: ‘each’ was not declared in this scope
for each (uint16 item in *c)
^
user.cpp:49:2: error: expected ‘;’ before ‘{’ token
{
^
user.cpp:52:10: error: could not convert ‘((c != 0u) ? (c->std::vector<_Tp, _Alloc>::~vector<short unsigned int, std::allocator<short unsigned int> >(), operator delete(((void*)c))) : 0)’ from ‘void’ to ‘bool’
delete(c);
^
user.cpp:54:2: error: expected primary-expression before ‘return’
return 0;
^
user.cpp:54:2: error: expected ‘)’ before ‘return’
user.cpp:25:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(INPUT_FILE, "r", stdin);
^
user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(OUTPUT_FILE, "w", stdout);
^
user.cpp:29:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd %hd", &M, &N);
^
user.cpp:35:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd", &x);
^
user.cpp:41:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !