Borderou de evaluare (job #1336985)
Utilizator | Data | 8 februarie 2015 15:00:08 | |
---|---|---|---|
Problema | Dtcsu | 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:119:9: error: ‘X’ was not declared in this scope
X = getNr();
^
user.cpp:130:29: error: ‘out’ was not declared in this scope
if ( X == 1 ) ++out;
^
user.cpp:134:19: error: ‘out’ was not declared in this scope
printf("%d\n",out);
^
user.cpp:105:15: warning: unused variable ‘nr’ [-Wunused-variable]
long long nr;
^
user.cpp:115:9: warning: unused variable ‘sol’ [-Wunused-variable]
int sol = 0;
^
user.cpp:102:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.in", "r", stdin);
^
user.cpp:103:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.out", "w", stdout);
^
user.cpp: In function ‘char getChar()’:
user.cpp:15:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread( buffer, BS, 1, stdin );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !