Borderou de evaluare (job #1824928)
Utilizator | Data | 8 decembrie 2016 16:21:53 | |
---|---|---|---|
Problema | Criptare2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main(int, const char**)’:
user.cpp:32:19: error: ‘strlen’ was not declared in this scope
v[strlen(a)].push_back(a);
^
user.cpp:40:24: error: ‘strlen’ was not declared in this scope
size = strlen(a);
^
user.cpp:42:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < v[size].size(); ++k)
^
user.cpp:54:72: warning: operation on ‘frec[(((int)a[j]) + -97)]’ may be undefined [-Wsequence-point]
frec[a[j] - 'a'] = frec[a[j] - 'a'] = v[size][k][j];
^
user.cpp:23:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("criptare2.in", "r", stdin);
^
user.cpp:24:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("criptare2.out", "w", stdout);
^
user.cpp:28:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &n);
^
user.cpp:31:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", a);
^
user.cpp:35:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &m);
^
user.cpp:38:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", a);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !