Borderou de evaluare (job #1718705)
Utilizator | Data | 18 iunie 2016 21:31:17 | |
---|---|---|---|
Problema | Chiftea | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:2: error: ‘freopen’ does not name a type
freopen fin("chiftea.in", "r", stdin);
^
user.cpp:5:9: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("chiftea.out", "w", stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:12:4: error: ‘fin’ was not declared in this scope
fin >> t;
^
user.cpp:15:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:23:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d \n", ans )
^
user.cpp:24:4: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !