Borderou de evaluare (job #1523153)
Utilizator | Data | 12 noiembrie 2015 13:52:11 | |
---|---|---|---|
Problema | Suma | 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:17:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
S=S%P:
^
user.cpp:17:9: error: ‘P’ is not a class, namespace, or enumeration
S=S%P:
^
user.cpp:20:26: error: ‘s’ was not declared in this scope
printf("%lld \n", S);s
^
user.cpp:21:1: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:5:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma.in", "r", stdin);
^
user.cpp:6:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma.out", "w", stdout);
^
user.cpp:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &N);
^
user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &P);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !