Borderou de evaluare (job #2650204)
Utilizator | Data | 17 septembrie 2020 18:35:29 | |
---|---|---|---|
Problema | Avarcolaci | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:35:18: error: expected unqualified-id before '[' token
for(auto const& [key, val] : v) {
^
main.cpp:35:18: error: expected ';' before '[' token
main.cpp:35:19: error: 'key' was not declared in this scope
for(auto const& [key, val] : v) {
^~~
main.cpp:35:24: error: 'val' was not declared in this scope
for(auto const& [key, val] : v) {
^~~
main.cpp: In lambda function:
main.cpp:35:29: error: expected '{' before ':' token
for(auto const& [key, val] : v) {
^
main.cpp: In function 'int main()':
main.cpp:35:29: error: expected ';' before ':' token
main.cpp:35:29: error: expected primary-expression before ':' token
main.cpp:35:29: error: expected ')' before ':' token
main.cpp:35:29: error: expected primary-expression before ':' token
main.cpp:34:6: warning: unused variable 'maks' [-Wunused-variable]
int maks = -1, maksp;
^~~~
main.cpp:18:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("avarcolaci.in", "r", stdin);
^
main.cpp:19:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("avarcolaci.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !