Submission #713841

# Submission time Handle Problem Language Result Execution time Memory
713841 2023-03-23T06:02:55 Z Dulguun88 Bridž (COCI17_bridz) C++14
0 / 50
1 ms 212 KB
#include <iostream>
using namespace std;
int main(){   
   int n,cnt=0;
   for(int i=1 ; i<=n;i++){
   	for(int j=1;j<=13;j++){
   		char c;
   		cin>>c;
   		if(c=='A') cnt+=4;
   		else{
   			if(c=='K') cnt+=3;
   			else{
   				if(c=='Q') cnt+=2;
   				else{
   					if(c=='J') cnt++;
				   }
			   }
		   }
	   }
   }
   cout<<cnt;
}

Compilation message

bridz.cpp: In function 'int main()':
bridz.cpp:5:19: warning: 'n' is used uninitialized in this function [-Wuninitialized]
    5 |    for(int i=1 ; i<=n;i++){
      |                  ~^~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Incorrect 0 ms 212 KB Output isn't correct
4 Incorrect 0 ms 212 KB Output isn't correct
5 Incorrect 0 ms 212 KB Output isn't correct
6 Incorrect 0 ms 212 KB Output isn't correct
7 Incorrect 0 ms 212 KB Output isn't correct
8 Incorrect 1 ms 212 KB Output isn't correct
9 Incorrect 0 ms 212 KB Output isn't correct
10 Incorrect 0 ms 212 KB Output isn't correct