134352025-01-08 07:16:38GundischBalazsFasor (40)cpp17Forditási hiba
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    string x;
    for(int i=1; i <= n; i++){
        cin >> x;
        {
            if((i%3==0 && x!="BIMM") or (i%5==0 && x!="BAMM") or (i%3==0 && i%5==0 && x!=BUMM){
                cout << i;
                return 0;
            } else if(x!=SZAM){
                cout << i;
                return 0;
            }
        }
    }
    return 0;
}
Forditási hiba
open /var/local/lib/isolate/412/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:13:90: error: 'BUMM' was not declared in this scope
   13 |             if((i%3==0 && x!="BIMM") or (i%5==0 && x!="BAMM") or (i%3==0 && i%5==0 && x!=BUMM){
      |                                                                                          ^~~~
main.cpp:13:95: error: expected ')' before '{' token
   13 |             if((i%3==0 && x!="BIMM") or (i%5==0 && x!="BAMM") or (i%3==0 && i%5==0 && x!=BUMM){
      |               ~                                                                               ^
      |                                                                                               )
main.cpp:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^