Borderou de evaluare (job #1410340)
Utilizator | Data | 30 martie 2015 23:50:29 | |
---|---|---|---|
Problema | Teroristi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:22: error: ‘n’ was not declared in this scope
scanf("%d%d%s", &n,&m,(sir+1));
^
user.cpp:26:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;++i) ++cntt[sir[i]-'a'];
^
user.cpp:29:24: error: ‘x’ was not declared in this scope
scanf("%c%c", &x,&y);
^
user.cpp:29:27: error: ‘y’ was not declared in this scope
scanf("%c%c", &x,&y);
^
user.cpp:32:5: error: ‘S’ was not declared in this scope
S=0; D=900;
^
user.cpp:32:10: error: ‘D’ was not declared in this scope
S=0; D=900;
^
user.cpp:33:9: error: ‘i’ was not declared in this scope
for(i=0;i<26;++i)
^
user.cpp:34:13: error: ‘j’ was not declared in this scope
for(j=0;j<26;++j)
^
user.cpp:37:9: error: ‘i’ was not declared in this scope
for(i=0;i<26;++i)
^
user.cpp:38:13: error: ‘j’ was not declared in this scope
for(j=0;j<26;++j)
^
user.cpp:44:9: error: ‘i’ was not declared in this scope
for(i=0;i<26;++i) C[Cod(i)][D]=cntt[i];
^
user.cpp:23:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("teroristi.in","r",stdin);
^
user.cpp:24:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("teroristi.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !