Borderou de evaluare (job #1746026)
Utilizator | Data | 22 august 2016 17:30:37 | |
---|---|---|---|
Problema | Cifru4 | 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:19:35: error: ‘strlen’ was not declared in this scope
l[i] = strlen(strCh[i] + 1) - 1;
^
user.cpp:32:47: error: ‘memset’ was not declared in this scope
memset(pos, 0, sizeof(pos));
^
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("cifru4.in", "r", stdin);
^
user.cpp:14:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifru4.out", "w", stdout);
^
user.cpp:15:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n", &n, &p, &k);
^
user.cpp:18:40: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(strCh[i] + 1, MAX, stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !