Borderou de evaluare (job #1549455)
Utilizator | Data | 12 decembrie 2015 12:52:12 | |
---|---|---|---|
Problema | Senat | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void input()’:
user.cpp:112:34: error: ‘strtok’ was not declared in this scope
char* p = strtok(s, " \n");
^
user.cpp:104:9: warning: unused variable ‘e’ [-Wunused-variable]
int e, i, x, y;
^
user.cpp:104:15: warning: unused variable ‘x’ [-Wunused-variable]
int e, i, x, y;
^
user.cpp:104:18: warning: unused variable ‘y’ [-Wunused-variable]
int e, i, x, y;
^
user.cpp: In function ‘int main()’:
user.cpp:16:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("senat.in", "r", stdin);
^
user.cpp:17:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("senat.out", "w", stdout);
^
user.cpp: In function ‘void input()’:
user.cpp:106:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &na, &n);
^
user.cpp:111:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s, 1000, stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !