Borderou de evaluare (job #2224941)
Utilizator | Data | 25 iulie 2018 16:37:26 | |
---|---|---|---|
Problema | Arbore3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:11: error: use of ‘auto’ in parameter declaration only available with -std=c++14 or -std=gnu++14
void Get (auto &x) ;
^~~~
user.cpp: In function ‘void ReadGraph()’:
user.cpp:53:15: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
Get(n); Get(s);
^
user.cpp:19:6: note: initializing argument 1 of ‘void Get(int&)’
void Get (auto &x) ;
^~~
user.cpp:57:8: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
Get(x); Get(w);
^
user.cpp:19:6: note: initializing argument 1 of ‘void Get(int&)’
void Get (auto &x) ;
^~~
user.cpp:57:16: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
Get(x); Get(w);
^
user.cpp:19:6: note: initializing argument 1 of ‘void Get(int&)’
void Get (auto &x) ;
^~~
user.cpp: At global scope:
user.cpp:104:11: error: use of ‘auto’ in parameter declaration only available with -std=c++14 or -std=gnu++14
void Get (auto &x) {
^~~~
user.cpp: In function ‘void ReadGraph()’:
user.cpp:51:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbore3.in","r",stdin);
^
user.cpp:52:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbore3.out","w",stdout);
^
user.cpp: In function ‘void Next()’:
user.cpp:101:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
std::fread(buf, 1, Lim, stdin), u = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !