Borderou de evaluare (job #2740031)
Utilizator | Data | 10 aprilie 2021 23:24:38 | |
---|---|---|---|
Problema | Loto | 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:31:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (auto p1: dic)
^~~
main.cpp:34:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(it!=m.end())
^~
main.cpp:32:57: warning: variable 'it' set but not used [-Wunused-but-set-variable]
unordered_map<int, pair<int,int>>::iterator it = dic.find(s-p1.first);
^~
main.cpp:34:16: error: 'it' was not declared in this scope
if(it!=m.end())
^~
main.cpp:34:20: error: 'm' was not declared in this scope
if(it!=m.end())
^
main.cpp:36:22: error: 'p1' was not declared in this scope
g << p1.second.first << ' ' << p1.second.second << ' ' << p1.first - (p1.second.first+p1.second.second) << ' ' <<
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !