Borderou de evaluare (job #2712066)
Utilizator | Data | 25 februarie 2021 09:39:12 | |
---|---|---|---|
Problema | Minerale | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(char*)':
main.cpp:19:21: error: 'strlen' was not declared in this scope
int l=strlen(s+1);
^
main.cpp:22:36: error: 'transf' was not declared in this scope
d[i][i]=transf(s[i]);
^
main.cpp:24:35: error: expected ']' before ';' token
d[i][i]=v[s[i]-'a';];
^
main.cpp:23:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
main.cpp:24:36: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
d[i][i]=v[s[i]-'a';];
^
main.cpp:24:36: error: expected primary-expression before ']' token
main.cpp: In function 'int main()':
main.cpp:38:5: error: expected ';' before 'for'
for(int i=1;i<=r;i++){
^~~
main.cpp:38:17: error: 'i' was not declared in this scope
for(int i=1;i<=r;i++){
^
main.cpp:46:20: error: 't' was not declared in this scope
for(int i=1;i<=t;i++){
^
main.cpp:47:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
fin>>s+1
~^~
main.cpp:48:9: error: expected ';' before 'solve'
solve(s);
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !