Borderou de evaluare (job #2232938)
Utilizator | Data | 21 august 2018 17:51:34 | |
---|---|---|---|
Problema | Mesaj2 | 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:15:15: error: ‘gets’ was not declared in this scope
gets(sir+1);
^
user.cpp:28:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<v[sir[1]-'!'].size();j++)
~^~~~~~~~~~~~~~~~~~~~~
user.cpp:34:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(poz[k]<v[sir[k]-'!'].size() && v[sir[k]-'!'][poz[k]]<=pozz) poz[k]++;
~~~~~~^~~~~~~~~~~~~~~~~~~~~
user.cpp:35:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(poz[k]==v[sir[k]-'!'].size()) {p=1;break;}
~~~~~~^~~~~~~~~~~~~~~~~~~~~~
user.cpp:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaj2.in","r",stdin);
^
user.cpp:13:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaj2.out","w",stdout);
^
user.cpp:20:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !