password.cpp: In function 'int query(std::string)':
password.cpp:3:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
3 | #define rep(i,a,n) for (int i=a;i<n;i++)
| ^~~
password.cpp:27:2: note: in expansion of macro 'rep'
27 | rep(i,0,SZ(s)) printf("%c",s[i]); puts("");
| ^~~
password.cpp:27:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
27 | rep(i,0,SZ(s)) printf("%c",s[i]); puts("");
| ^~~~
password.cpp:29:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d",&x);
| ~~~~~^~~~~~~~~
/usr/bin/ld: /tmp/ccq95pTf.o: in function `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
grader.cpp:(.text+0x80): multiple definition of `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'; /tmp/ccpOFqRe.o:password.cpp:(.text+0x2a0): first defined here
collect2: error: ld returned 1 exit status