Borderou de evaluare (job #2406053)
Utilizator | Data | 15 aprilie 2019 12:44:38 | |
---|---|---|---|
Problema | Puteri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:9: error: 'vector' does not name a type
vector <char> Buff;
^~~~~~
main.cpp: In constructor 'Buffer::Buffer(char*, long int)':
main.cpp:18:32: error: 'Buff' was not declared in this scope
maxBuf = buffSize; Buff.resize(maxBuf);
^~~~
main.cpp: In member function 'Buffer& Buffer::operator>>(long int&)':
main.cpp:23:28: error: 'Buff' was not declared in this scope
while(!isDigit(Buff[pos])){
^~~~
main.cpp:28:27: error: 'Buff' was not declared in this scope
while(isDigit(Buff[pos])){
^~~~
main.cpp: In member function 'bool Buffer::isDigit(char)':
main.cpp:37:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
return c >= '0' & c <= '9';
~~^~~~~~
main.cpp: In member function 'void Buffer::reFill()':
main.cpp:40:20: error: 'Buff' was not declared in this scope
fread(&Buff[0],1,maxBuf,stdin); pos = 0;
^~~~
main.cpp: In function 'int main()':
main.cpp:93:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
Buffer cin("puteri.in",1024*1024);
^
main.cpp:96:12: error: invalid initialization of non-const reference of type 'long int&' from an rvalue of type 'long int'
cin >> n;
^
main.cpp:22:17: note: initializing argument 1 of 'Buffer& Buffer::operator>>(long int&)'
Buffer& operator>>(long &dest){
^~~~~~~~
main.cpp:98:19: error: invalid initialization of non-const reference of type 'long int&' from an rvalue of type 'long int'
cin >> a[i] >> b[i] >> c[i];
~~~^
main.cpp:22:17: note: initializing argument 1 of 'Buffer& Buffer::operator>>(long int&)'
Buffer& operator>>(long &dest){
^~~~~~~~
main.cpp:101:13: error: 'fin' was not declared in this scope
fclose( fin );
^~~
main.cpp: In constructor 'Buffer::Buffer(char*, long int)':
main.cpp:17:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(fileName,"r",stdin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !