114502024-09-26 08:32:39tKriszBimmbamm (30)cpp14Compilation error
#include <iostream>

using namespace std;

int main()
{
    char a,b;
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>b>>a>>b>>b;
        if(a=='Z'){
            if((a=='Z'&&i%3*i%5)||(a=='I'&&i%3==0&&i%5)||(a=='A'&&i%3&&i%5==0)||(a=='U'&&i%3+i%5==0)){
                continue;
            }
            else{
                cout<<i;
                break;
            }
    }
    return 0;
}
Compilation error
open /var/local/lib/isolate/423/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:22:2: error: expected '}' at end of input
   22 | }
      |  ^
main.cpp:6:1: note: to match this '{'
    6 | {
      | ^