Borderou de evaluare (job #2640321)
Utilizator | Data | 6 august 2020 00:59:37 | |
---|---|---|---|
Problema | Numarare triunghiuri | 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:17:11: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while (k<n && v[k]<v[i]+v[j])
^~~~~
main.cpp:19:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
if (v[k]==v[i]+v[j]) {sol+=k-j, k++;
^~
main.cpp:20:13: error: expected '}' before 'else'
else if (v[k]>v[i]+v[j])
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !