Borderou de evaluare (job #2113546)
Utilizator | Data | 24 ianuarie 2018 18:54:50 | |
---|---|---|---|
Problema | Dif2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int get_pos(int)’:
user.cpp:21:35: error: expected ‘,’ or ‘;’ before ‘left’
long long right =a[n] * a[n] + 1 left = a[1] * a[1] - 1;
^
user.cpp:22:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (left <= right)
^
user.cpp:24:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
long long mid = (left + right) / 2;
^
user.cpp:24:36: error: invalid operands of types ‘std::ios_base& (*)(std::ios_base&)’ and ‘int’ to binary ‘operator/’
long long mid = (left + right) / 2;
^
user.cpp:28:9: error: assignment of function ‘std::ios_base& std::left(std::ios_base&)’
left = mid + 1;
^
user.cpp:28:9: error: cannot convert ‘long long int’ to ‘std::ios_base&(std::ios_base&)’ in assignment
user.cpp:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !