Borderou de evaluare (job #1321418)
Utilizator | Data | 19 ianuarie 2015 08:48:52 | |
---|---|---|---|
Problema | Carte | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[3001]’ [-Wformat=]
scanf("%s\n%d",&s,&n);
^
user.cpp:19:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<strlen(s);j++)
^
user.cpp:21:13: error: ‘d’ was not declared in this scope
d[j]=d[j-1]
^
user.cpp:22:9: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:10:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cartea.in","r",stdin);
^
user.cpp:11:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cartea.out","w",stdout);
^
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:16:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n%d",&s,&n);
^
user.cpp:18:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n",dict[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !