Borderou de evaluare (job #2001071)
Utilizator | Data | 15 iulie 2017 16:52:13 | |
---|---|---|---|
Problema | Kbiti | Status | done |
Runda | kek | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:33: error: ‘std::string’ has no member named ‘len’
for(long int j=0;j<temp.len;j++)if(temp[j]=='1')
^
user.cpp:27:37: error: ‘std::string’ has no member named ‘len’
long int pow=abs(j-temp.len+1);
^
user.cpp:26:27: warning: unused variable ‘ad’ [-Wunused-variable]
long long int ad=1;
^
user.cpp:19:9: warning: unused variable ‘len’ [-Wunused-variable]
int len=temp.length();
^
user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kbiti.in","r",stdin);
^
user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kbiti.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !