count_triplets.cpp: In function 'int main()':
count_triplets.cpp:100:8: error: found ':' in nested-name-specifier, expected '::'
for(x:L){
^
count_triplets.cpp:100:7: error: 'x' is not a class, namespace, or enumeration
for(x:L){
^
count_triplets.cpp:105:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
x=bcc[L[0]][0].fi;
^
count_triplets.cpp:106:3: error: expected primary-expression before 'for'
for(y:lst[x]){
^~~
count_triplets.cpp:106:3: error: expected ')' before 'for'
count_triplets.cpp:106:8: error: found ':' in nested-name-specifier, expected '::'
for(y:lst[x]){
^
count_triplets.cpp:106:7: error: 'y' is not a class, namespace, or enumeration
for(y:lst[x]){
^
count_triplets.cpp:109:2: error: expected primary-expression before '}' token
}
^
count_triplets.cpp:109:2: error: expected ';' before '}' token
count_triplets.cpp:109:2: error: expected primary-expression before '}' token
count_triplets.cpp:109:2: error: expected ')' before '}' token
count_triplets.cpp:109:2: error: expected primary-expression before '}' token
count_triplets.cpp:86:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
count_triplets.cpp:88:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
~~~~~^~~~~~~~~~~~~~~