Borderou de evaluare (job #2184830)
Utilizator | Data | 24 martie 2018 11:24:51 | |
---|---|---|---|
Problema | Engineer | Status | done |
Runda | Agm 2018 Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:102:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, x2, y2;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/iosfwd:38,
from /usr/include/c++/6/ios:38,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:139:19: error: assignment of function ‘double y1(double)’
y1 = Read();
^
user.cpp:139:19: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:145:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
subtract[j] = root[j][y1 - 1];
^
user.cpp:145:41: error: invalid types ‘Node* [1101][double (*)(double) throw ()]’ for array subscript
subtract[j] = root[j][y1 - 1];
^
user.cpp: In function ‘char Advance()’:
user.cpp:25:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, 1, SIZE, stdin);
^
user.cpp: In function ‘Node* Update(Node*, int, int, int)’:
user.cpp:67:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:128:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("engineer.in", "r", stdin);
^
user.cpp:129:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("engineer.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !