Borderou de evaluare (job #2788792)
Utilizator | Data | 26 octombrie 2021 14:35:05 | |
---|---|---|---|
Problema | Swap | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:23: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
18 | for(F>>A>>B,n=strlen(A),m=strlen(B);i<n;++i)
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:385:35: note: initializing argument 1 of 'size_t strlen(const char*)'
385 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
main.cpp:18:35: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
18 | for(F>>A>>B,n=strlen(A),m=strlen(B);i<n;++i)
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:385:35: note: initializing argument 1 of 'size_t strlen(const char*)'
385 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~
main.cpp:23:66: error: 'j' was not declared in this scope
23 | for(p=Q[B[i]-'a'].front(),Q[B[i]-'a'].pop(),r+=p-i-1+E(n)-E(p);j<100000;j+=z(j))
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !